comparison 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
comparison
equal deleted inserted replaced
132:949f45d1589a 133:b27548f540ad
57 57
58 58
59 static int ngx_http_charset_header_filter(ngx_http_request_t *r) 59 static int ngx_http_charset_header_filter(ngx_http_request_t *r)
60 { 60 {
61 ngx_http_charset_loc_conf_t *lcf; 61 ngx_http_charset_loc_conf_t *lcf;
62
63 if (ngx_strncasecmp(r->headers_out.content_type->value.data, "text/", 5)
64 != 0) {
65 return next_header_filter(r);
66 }
62 67
63 lcf = ngx_http_get_module_loc_conf(r, ngx_http_charset_filter_module); 68 lcf = ngx_http_get_module_loc_conf(r, ngx_http_charset_filter_module);
64 69
65 if (r->headers_out.status == NGX_HTTP_MOVED_PERMANENTLY 70 if (r->headers_out.status == NGX_HTTP_MOVED_PERMANENTLY
66 && r->headers_out.status == NGX_HTTP_MOVED_TEMPORARILY) 71 && r->headers_out.status == NGX_HTTP_MOVED_TEMPORARILY)