mirror of
https://github.com/nginx/nginx.git
synced 2025-06-28 10:10:39 +08: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;
|
out = data;
|
||||||
|
|
||||||
if (!r->header_sent) {
|
if (!r->header_sent) {
|
||||||
if (ngx_http_set_content_type(r) != NGX_OK) {
|
r->headers_out.content_type_len =
|
||||||
return NGX_ERROR;
|
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) {
|
if (ngx_http_send_header(r) == NGX_ERROR) {
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user