mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +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;
|
||||
}
|
||||
|
||||
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…
Reference in New Issue
Block a user