diff src/http/modules/ngx_http_gzip_filter_module.c @ 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 58dfef910ccd
children 4b744a2fb1a6
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);
     }