diff src/http/ngx_http_upstream.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 2464ccebdb52
children c9059bd5445b
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