summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-23 19:26:53 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-09-23 19:26:53 +0000
commit72c8eb8baf0e29ce8d3dc809cb760e08d52caf0b (patch)
tree77493254b07805888525e7634e7e8df55cdee2b0 /src
parent272ee21e6badb1f3468bccf0fdafdcb514fb966d (diff)
downloadnginx-72c8eb8baf0e29ce8d3dc809cb760e08d52caf0b.tar.gz
nginx-72c8eb8baf0e29ce8d3dc809cb760e08d52caf0b.tar.bz2
r1445 merge:
allow to append charset to the "Content-Type" header
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/perl/nginx.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs
index dd01f3b3c..d6ba70a28 100644
--- a/src/http/modules/perl/nginx.xs
+++ b/src/http/modules/perl/nginx.xs
@@ -131,6 +131,8 @@ send_http_header(r, ...)
XSRETURN_EMPTY;
}
+ r->headers_out.content_type_len = r->headers_out.content_type.len;
+
} else {
if (ngx_http_set_content_type(r) != NGX_OK) {
XSRETURN_EMPTY;