From: Igor Sysoev Date: Fri, 31 Aug 2007 18:47:25 +0000 (+0000) Subject: allow to append charset to the "Content-Type" header X-Git-Tag: release-0.6.10~11 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=2cc3ad8beaa11bf945f711b6a0ba85c4e64d9adf;p=nginx.git allow to append charset to the "Content-Type" header --- 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;