mirror of
https://github.com/nginx/nginx.git
synced 2026-06-30 13:53:18 +00: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
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue