]> git.kaiwu.me - nginx.git/commitdiff
allow to append charset to the "Content-Type" header
authorIgor Sysoev <igor@sysoev.ru>
Fri, 31 Aug 2007 18:47:25 +0000 (18:47 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 31 Aug 2007 18:47:25 +0000 (18:47 +0000)
src/http/modules/perl/nginx.xs

index 7423daa934e379229280d39b068bc097cb16c462..fdaedd750e780d4f15d3f189632111e0f473cbbb 100644 (file)
@@ -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;