Mercurial > hg > nginx
comparison src/http/modules/ngx_http_ssi_filter_module.c @ 3453:7b68809fe8b1
use content type of the parent request in SSI stub block output
instead of default one
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 19 Feb 2010 13:42:59 +0000 |
parents | 6b8e5c882e47 |
children | 04966b3122ab |
comparison
equal
deleted
inserted
replaced
3452:fd098caab443 | 3453:7b68809fe8b1 |
---|---|
2059 "ssi stub output: \"%V?%V\"", &r->uri, &r->args); | 2059 "ssi stub output: \"%V?%V\"", &r->uri, &r->args); |
2060 | 2060 |
2061 out = data; | 2061 out = data; |
2062 | 2062 |
2063 if (!r->header_sent) { | 2063 if (!r->header_sent) { |
2064 if (ngx_http_set_content_type(r) != NGX_OK) { | 2064 r->headers_out.content_type_len = |
2065 return NGX_ERROR; | 2065 r->parent->headers_out.content_type_len; |
2066 } | 2066 r->headers_out.content_type = r->parent->headers_out.content_type; |
2067 | 2067 |
2068 if (ngx_http_send_header(r) == NGX_ERROR) { | 2068 if (ngx_http_send_header(r) == NGX_ERROR) { |
2069 return NGX_ERROR; | 2069 return NGX_ERROR; |
2070 } | 2070 } |
2071 } | 2071 } |