summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-02-01 08:10:52 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-02-01 08:10:52 +0000
commit328af6e8cd26f274bf385cfff3c888725746ea4f (patch)
tree9d543325432262cde3c248dad0595265bb15feea /src/http
parentbbcea6c3d79208d002710734d5f0826e7fc79465 (diff)
downloadnginx-328af6e8cd26f274bf385cfff3c888725746ea4f.tar.gz
nginx-328af6e8cd26f274bf385cfff3c888725746ea4f.tar.bz2
nginx-0.0.1-2004-02-01-11:10:52 import
Diffstat (limited to '')
-rw-r--r--src/http/modules/ngx_http_ssi_filter.c9
-rw-r--r--src/http/ngx_http_request.c2
2 files changed, 9 insertions, 2 deletions
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);
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index c5e87fed0..5d411a84f 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1037,8 +1037,6 @@ static void ngx_http_block_read(ngx_event_t *rev)
ngx_http_close_connection(c);
}
}
-
- return;
}