Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
6305:18428f775b2c | 6306:b1858fc47e3b |
---|---|
1786 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); | 1786 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); |
1787 return NGX_ERROR; | 1787 return NGX_ERROR; |
1788 } | 1788 } |
1789 } | 1789 } |
1790 | 1790 |
1791 if (r->method & NGX_HTTP_TRACE) { | 1791 if (r->method == NGX_HTTP_TRACE) { |
1792 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0, | 1792 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0, |
1793 "client sent TRACE method"); | 1793 "client sent TRACE method"); |
1794 ngx_http_finalize_request(r, NGX_HTTP_NOT_ALLOWED); | 1794 ngx_http_finalize_request(r, NGX_HTTP_NOT_ALLOWED); |
1795 return NGX_ERROR; | 1795 return NGX_ERROR; |
1796 } | 1796 } |