diff src/http/modules/ngx_http_ssi_filter.c @ 247:008276b9e061

nginx-0.0.1-2004-02-01-11:10:52 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 01 Feb 2004 08:10:52 +0000
parents bf2faf694c19
children 0ba4821f4460
line wrap: on
line diff
--- 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(ng
         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);