comparison src/http/modules/ngx_http_charset_filter_module.c @ 104:146eff53ab60 NGINX_0_2_6

nginx 0.2.6 *) Change: while using load-balancing the time before the failed backend retry was decreased from 60 to 10 seconds. *) Change: the "proxy_pass_unparsed_uri" was canceled, the original URI now passed, if the URI part is omitted in "proxy_pass" directive. *) Feature: the "error_page" directive supports redirects and allows more flexible to change an error code. *) Change: the charset in the "Content-Type" header line now is ignored in proxied subrequests. *) Bugfix: if the URI was changed in the "if" block and request did not found new configuration, then the ngx_http_rewrite_module rules ran again. *) Bugfix: if the "set" directive set the ngx_http_geo_module variable in some configuration part, the this variable was not available in other configuration parts and the "using uninitialized variable" error was occurred; bug appeared in 0.2.2.
author Igor Sysoev <http://sysoev.ru>
date Wed, 05 Oct 2005 00:00:00 +0400
parents 71c46860eb55
children cf3d6edb3ad6
comparison
equal deleted inserted replaced
103:acdd83ee07cb 104:146eff53ab60
160 "application/x-javascript", 24) != 0) 160 "application/x-javascript", 24) != 0)
161 { 161 {
162 return ngx_http_next_header_filter(r); 162 return ngx_http_next_header_filter(r);
163 } 163 }
164 164
165 if (ngx_strstr(r->headers_out.content_type.data, "charset") != NULL) 165 if (r->main == r
166 && ngx_strstr(r->headers_out.content_type.data, "charset") != NULL)
166 { 167 {
167 return ngx_http_next_header_filter(r); 168 return ngx_http_next_header_filter(r);
168 } 169 }
169 170
170 if (r->headers_out.status == NGX_HTTP_MOVED_PERMANENTLY 171 if (r->headers_out.status == NGX_HTTP_MOVED_PERMANENTLY