Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4991 - in trunk/src/http: . modules

Anonymous User
December 24, 2012 12:34PM
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

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4991 - in trunk/src/http: . modules

Anonymous User 1011 December 24, 2012 12:34PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 86
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready