head requests and chunked transfer encoding

Igor Sysoev is at rambler-co.ru
Wed Oct 1 15:14:59 MSD 2008


On Wed, Oct 01, 2008 at 12:32:37PM +0200, Robert Gabriel wrote:

> Hello, I applied that patch, but still the same response.

Sorry, the new patch should fix it.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/http/modules/ngx_http_chunked_filter_module.c
===================================================================
--- src/http/modules/ngx_http_chunked_filter_module.c	(revision 1588)
+++ src/http/modules/ngx_http_chunked_filter_module.c	(working copy)
@@ -53,7 +53,8 @@
     if (r->headers_out.status == NGX_HTTP_NOT_MODIFIED
         || r->headers_out.status == NGX_HTTP_NO_CONTENT
         || r->headers_out.status == NGX_HTTP_CREATED
-        || r != r->main)
+        || r != r->main
+        || (r->method & NGX_HTTP_HEAD))
     {
         return ngx_http_next_header_filter(r);
     }


More information about the nginx mailing list