From cb90df084f417f0aa2d9adc96124b22c655cf67b Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 24 Dec 2012 17:32:53 +0000 Subject: Fixed HEAD requests handling when proxying is used (closes #261). --- src/http/modules/ngx_http_gzip_filter_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules') diff --git a/src/http/modules/ngx_http_gzip_filter_module.c b/src/http/modules/ngx_http_gzip_filter_module.c index 470be3daf..2f39543af 100644 --- 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_request_t *r, ngx_chain_t *in) 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); } -- cgit