diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-09-23 19:26:53 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-09-23 19:26:53 +0000 |
| commit | 72c8eb8baf0e29ce8d3dc809cb760e08d52caf0b (patch) | |
| tree | 77493254b07805888525e7634e7e8df55cdee2b0 | |
| parent | 272ee21e6badb1f3468bccf0fdafdcb514fb966d (diff) | |
| download | nginx-72c8eb8baf0e29ce8d3dc809cb760e08d52caf0b.tar.gz nginx-72c8eb8baf0e29ce8d3dc809cb760e08d52caf0b.tar.bz2 | |
r1445 merge:
allow to append charset to the "Content-Type" header
| -rw-r--r-- | src/http/modules/perl/nginx.xs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs index dd01f3b3c..d6ba70a28 100644 --- 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; |
