changeset 1444:37938e68910b

allow to append charset to the "Content-Type" header
author Igor Sysoev <igor@sysoev.ru>
date Fri, 31 Aug 2007 18:47:25 +0000
parents f8142ab2bace
children 907820e5437f
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;