comparison 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
comparison
equal deleted inserted replaced
6305:18428f775b2c 6306:b1858fc47e3b
770 770
771 if (rc != NGX_OK) { 771 if (rc != NGX_OK) {
772 return rc; 772 return rc;
773 } 773 }
774 774
775 if ((r->method & NGX_HTTP_HEAD) && u->conf->cache_convert_head) { 775 if (r->method == NGX_HTTP_HEAD && u->conf->cache_convert_head) {
776 u->method = ngx_http_core_get_method; 776 u->method = ngx_http_core_get_method;
777 } 777 }
778 778
779 if (ngx_http_file_cache_new(r) != NGX_OK) { 779 if (ngx_http_file_cache_new(r) != NGX_OK) {
780 return NGX_ERROR; 780 return NGX_ERROR;