changeset 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 b7431340e7f8
children 44bd4db45b30
files src/http/modules/perl/nginx.xs
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;