mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +08:00
allow to append charset to the "Content-Type" header
This commit is contained in:
parent
b3dd3fd359
commit
2cc3ad8bea
@ -131,6 +131,8 @@ send_http_header(r, ...)
|
|||||||
XSRETURN_EMPTY;
|
XSRETURN_EMPTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r->headers_out.content_type_len = r->headers_out.content_type.len;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (ngx_http_set_content_type(r) != NGX_OK) {
|
if (ngx_http_set_content_type(r) != NGX_OK) {
|
||||||
XSRETURN_EMPTY;
|
XSRETURN_EMPTY;
|
||||||
|
Loading…
Reference in New Issue
Block a user