aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_special_response.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-05-25 09:06:29 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-05-25 09:06:29 +0000
commit60190068ab90c5b253c76b94c6c38d0b2489b15c (patch)
tree8365e9dd5d249b1629b230057312d52e5a6c6467 /src/http/ngx_http_special_response.c
parent77fd67cc3884b29bce6bb40c68e1236e84f7c816 (diff)
downloadnginx-60190068ab90c5b253c76b94c6c38d0b2489b15c.tar.gz
nginx-60190068ab90c5b253c76b94c6c38d0b2489b15c.zip
reset content_type hash value, this fixes a bug when XSLT responses
could not be processed by SSI, charset, and gzip filters
Diffstat (limited to 'src/http/ngx_http_special_response.c')
-rw-r--r--src/http/ngx_http_special_response.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c
index 976543034..62f71a3ef 100644
--- a/src/http/ngx_http_special_response.c
+++ b/src/http/ngx_http_special_response.c
@@ -610,6 +610,7 @@ ngx_http_send_special_response(ngx_http_request_t *r,
r->headers_out.content_type_len = sizeof("text/html") - 1;
r->headers_out.content_type.len = sizeof("text/html") - 1;
r->headers_out.content_type.data = (u_char *) "text/html";
+ r->headers_out.content_type_lowcase = NULL;
} else {
r->headers_out.content_length_n = -1;
@@ -712,6 +713,7 @@ ngx_http_send_refresh(ngx_http_request_t *r)
r->headers_out.content_type_len = sizeof("text/html") - 1;
r->headers_out.content_type.len = sizeof("text/html") - 1;
r->headers_out.content_type.data = (u_char *) "text/html";
+ r->headers_out.content_type_lowcase = NULL;
r->headers_out.location->hash = 0;
r->headers_out.location = NULL;