Fixed HEAD requests handling when proxying is used (closes #261).

This commit is contained in:
Valentin Bartenev 2012-12-24 17:32:53 +00:00
parent 2189c87aa7
commit cb90df084f
2 changed files with 2 additions and 1 deletions

View File

@ -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);
}

View File

@ -3099,6 +3099,7 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r,
r->connection->log->action = "sending to client";
if (rc == 0
&& !r->header_only
#if (NGX_HTTP_CACHE)
&& !r->cached
#endif