diff src/http/modules/ngx_http_charset_filter.c @ 133:b27548f540ad

nginx-0.0.1-2003-09-24-23:51:12 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 24 Sep 2003 19:51:12 +0000
parents cd54bcbaf3b5
children 54307053f185
line wrap: on
line diff
--- a/src/http/modules/ngx_http_charset_filter.c
+++ b/src/http/modules/ngx_http_charset_filter.c
@@ -60,6 +60,11 @@ static int ngx_http_charset_header_filte
 {
     ngx_http_charset_loc_conf_t  *lcf;
 
+    if (ngx_strncasecmp(r->headers_out.content_type->value.data, "text/", 5)
+                                                                        != 0) {
+        return next_header_filter(r);
+    }
+
     lcf = ngx_http_get_module_loc_conf(r, ngx_http_charset_filter_module);
 
     if (r->headers_out.status == NGX_HTTP_MOVED_PERMANENTLY