diff src/http/modules/ngx_http_range_filter_module.c @ 2882:896db5a09bd2

reset content_type hash value, this fixes a bug when XSLT responses could not be processed by SSI, charset, and gzip filters
author Igor Sysoev <igor@sysoev.ru>
date Mon, 25 May 2009 09:06:29 +0000
parents 3a8a53c0c42f
children 616da2ea901f
line wrap: on
line diff
--- a/src/http/modules/ngx_http_range_filter_module.c
+++ b/src/http/modules/ngx_http_range_filter_module.c
@@ -456,6 +456,8 @@ ngx_http_range_multipart_header(ngx_http
         return NGX_ERROR;
     }
 
+    r->headers_out.content_type_lowcase = NULL;
+
     /* "Content-Type: multipart/byteranges; boundary=0123456789" */
 
     r->headers_out.content_type.len =
@@ -464,6 +466,7 @@ ngx_http_range_multipart_header(ngx_http
                                        boundary)
                            - r->headers_out.content_type.data;
 
+    r->headers_out.content_type_len = r->headers_out.content_type.len;
 
     /* the size of the last boundary CRLF "--0123456789--" CRLF */