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 Mon Nov 23 12:40:19 2015 +0300 +++ b/src/http/ngx_http_upstream.c Fri Nov 06 15:22:43 2015 +0300 @@ -772,7 +772,7 @@ 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; }