aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/perl/nginx.xs
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-08-31 18:47:25 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-08-31 18:47:25 +0000
commit2cc3ad8beaa11bf945f711b6a0ba85c4e64d9adf (patch)
tree1833a88ea6c7048a2f2a511c8517fca3c093acac /src/http/modules/perl/nginx.xs
parentb3dd3fd35911f062753ea68e3b073626812e02e2 (diff)
downloadnginx-2cc3ad8beaa11bf945f711b6a0ba85c4e64d9adf.tar.gz
nginx-2cc3ad8beaa11bf945f711b6a0ba85c4e64d9adf.zip
allow to append charset to the "Content-Type" header
Diffstat (limited to 'src/http/modules/perl/nginx.xs')
-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 7423daa93..fdaedd750 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;