use content type of the parent request in SSI stub block output

instead of default one
This commit is contained in:
Igor Sysoev 2010-02-19 13:42:59 +00:00
parent aa9a761f88
commit bc55ea07c8

View File

@ -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;