From 328af6e8cd26f274bf385cfff3c888725746ea4f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 1 Feb 2004 08:10:52 +0000 Subject: nginx-0.0.1-2004-02-01-11:10:52 import --- src/http/modules/ngx_http_ssi_filter.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/http/modules') diff --git a/src/http/modules/ngx_http_ssi_filter.c b/src/http/modules/ngx_http_ssi_filter.c index 56070d11f..4aed6ae20 100644 --- a/src/http/modules/ngx_http_ssi_filter.c +++ b/src/http/modules/ngx_http_ssi_filter.c @@ -158,6 +158,15 @@ static int ngx_http_ssi_header_filter(ngx_http_request_t *r) return ngx_http_next_header_filter(r); } + /* TODO: "text/html" -> custom types */ + + if (r->headers_out.content_type + && ngx_strncasecmp(r->headers_out.content_type->value.data, + "text/html", 5) != 0) + { + return ngx_http_next_header_filter(r); + } + ngx_http_create_ctx(r, ctx, ngx_http_ssi_filter_module, sizeof(ngx_http_ssi_ctx_t), NGX_ERROR); -- cgit