[nginx] svn commit: r4991 - in trunk/src/http: . modules
vbart at nginx.com
vbart at nginx.com
Mon Dec 24 17:32:53 UTC 2012
Author: vbart
Date: 2012-12-24 17:32:53 +0000 (Mon, 24 Dec 2012)
New Revision: 4991
URL: http://trac.nginx.org/nginx/changeset/4991/nginx
Log:
Fixed HEAD requests handling when proxying is used (closes #261).
Modified:
trunk/src/http/modules/ngx_http_gzip_filter_module.c
trunk/src/http/ngx_http_upstream.c
Modified: trunk/src/http/modules/ngx_http_gzip_filter_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_gzip_filter_module.c 2012-12-24 16:40:55 UTC (rev 4990)
+++ trunk/src/http/modules/ngx_http_gzip_filter_module.c 2012-12-24 17:32:53 UTC (rev 4991)
@@ -321,7 +321,7 @@
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);
}
Modified: trunk/src/http/ngx_http_upstream.c
===================================================================
--- trunk/src/http/ngx_http_upstream.c 2012-12-24 16:40:55 UTC (rev 4990)
+++ trunk/src/http/ngx_http_upstream.c 2012-12-24 17:32:53 UTC (rev 4991)
@@ -3099,6 +3099,7 @@
r->connection->log->action = "sending to client";
if (rc == 0
+ && !r->header_only
#if (NGX_HTTP_CACHE)
&& !r->cached
#endif
More information about the nginx-devel
mailing list