Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 6306:b1858fc47e3b
Style: unified request method checks.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 06 Nov 2015 15:22:43 +0300 |
parents | a93345ee8f52 |
children | be3aed17689c |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -772,7 +772,7 @@ ngx_http_upstream_cache(ngx_http_request return rc; } - if ((r->method & NGX_HTTP_HEAD) && u->conf->cache_convert_head) { + if (r->method == NGX_HTTP_HEAD && u->conf->cache_convert_head) { u->method = ngx_http_core_get_method; }