diff src/http/ngx_http_request.c @ 6306:b1858fc47e3b

Style: unified request method checks.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 06 Nov 2015 15:22:43 +0300
parents 909b5b191f25
children a6902a941279
line wrap: on
line diff
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1788,7 +1788,7 @@ ngx_http_process_request_header(ngx_http
         }
     }
 
-    if (r->method & NGX_HTTP_TRACE) {
+    if (r->method == NGX_HTTP_TRACE) {
         ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
                       "client sent TRACE method");
         ngx_http_finalize_request(r, NGX_HTTP_NOT_ALLOWED);