mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06:00
use content type of the parent request in SSI stub block output
instead of default one
This commit is contained in:
parent
aa9a761f88
commit
bc55ea07c8
@ -2061,9 +2061,9 @@ ngx_http_ssi_stub_output(ngx_http_request_t *r, void *data, ngx_int_t rc)
|
||||
out = data;
|
||||
|
||||
if (!r->header_sent) {
|
||||
if (ngx_http_set_content_type(r) != NGX_OK) {
|
||||
return NGX_ERROR;
|
||||
}
|
||||
r->headers_out.content_type_len =
|
||||
r->parent->headers_out.content_type_len;
|
||||
r->headers_out.content_type = r->parent->headers_out.content_type;
|
||||
|
||||
if (ngx_http_send_header(r) == NGX_ERROR) {
|
||||
return NGX_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user