diff 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
line wrap: on
line diff
--- a/src/http/modules/ngx_http_static_module.c
+++ b/src/http/modules/ngx_http_static_module.c
@@ -204,7 +204,7 @@ ngx_http_static_handler(ngx_http_request
 
 #endif
 
-    if (r->method & NGX_HTTP_POST) {
+    if (r->method == NGX_HTTP_POST) {
         return NGX_HTTP_NOT_ALLOWED;
     }