Mercurial > hg > nginx
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 Fri Aug 31 12:13:12 2007 +0000 +++ b/src/http/modules/perl/nginx.xs Fri Aug 31 18:47:25 2007 +0000 @@ -131,6 +131,8 @@ 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;