diff src/http/ngx_http_upstream.c @ 5054:be9ce2946a8e stable-1.2

Merge of r4991: fixed proxied HEAD requests with gzip enabled. Fixed HEAD requests handling when proxying is used (ticket #261).
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 11 Feb 2013 14:39:49 +0000
parents 48d1606107d4
children d6980725e25c
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -3099,6 +3099,7 @@ ngx_http_upstream_finalize_request(ngx_h
     r->connection->log->action = "sending to client";
 
     if (rc == 0
+        && !r->header_only
 #if (NGX_HTTP_CACHE)
         && !r->cached
 #endif