Mercurial > hg > nginx
changeset 4990:e2794322ec76
Fixed HEAD requests handling when proxying is used (closes #261).
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 24 Dec 2012 17:32:53 +0000 |
parents | eababa1dc446 |
children | a384c60d55f3 |
files | src/http/modules/ngx_http_gzip_filter_module.c src/http/ngx_http_upstream.c |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_gzip_filter_module.c +++ b/src/http/modules/ngx_http_gzip_filter_module.c @@ -321,7 +321,7 @@ ngx_http_gzip_body_filter(ngx_http_reque ctx = ngx_http_get_module_ctx(r, ngx_http_gzip_filter_module); - if (ctx == NULL || ctx->done) { + if (ctx == NULL || ctx->done || r->header_only) { return ngx_http_next_body_filter(r, in); }