comparison src/http/modules/ngx_http_static_module.c @ 6306:b1858fc47e3b

Style: unified request method checks.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 06 Nov 2015 15:22:43 +0300
parents 192f54280a7a
children c85dfd99a2dd
comparison
equal deleted inserted replaced
6305:18428f775b2c 6306:b1858fc47e3b
202 return NGX_HTTP_NOT_FOUND; 202 return NGX_HTTP_NOT_FOUND;
203 } 203 }
204 204
205 #endif 205 #endif
206 206
207 if (r->method & NGX_HTTP_POST) { 207 if (r->method == NGX_HTTP_POST) {
208 return NGX_HTTP_NOT_ALLOWED; 208 return NGX_HTTP_NOT_ALLOWED;
209 } 209 }
210 210
211 rc = ngx_http_discard_request_body(r); 211 rc = ngx_http_discard_request_body(r);
212 212