diff src/http/modules/perl/nginx.xs @ 1531:8b04c0e37099 stable-0.5

r1445 merge: allow to append charset to the "Content-Type" header
author Igor Sysoev <igor@sysoev.ru>
date Sun, 23 Sep 2007 19:26:53 +0000
parents a77f6980de50
children 6b81bbc36eaf
line wrap: on
line diff
--- 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;