mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 12:21:57 +00:00
allow to append charset to the "Content-Type" header
This commit is contained in:
parent
b3dd3fd359
commit
2cc3ad8bea
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue