diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-08-31 18:47:25 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-08-31 18:47:25 +0000 |
commit | 2cc3ad8beaa11bf945f711b6a0ba85c4e64d9adf (patch) | |
tree | 1833a88ea6c7048a2f2a511c8517fca3c093acac /src/http/modules/perl/nginx.xs | |
parent | b3dd3fd35911f062753ea68e3b073626812e02e2 (diff) | |
download | nginx-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.xs | 2 |
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; |