comparison src/http/ngx_http_upstream.c @ 202:ca5f86d94316 NGINX_0_3_48

nginx 0.3.48 *) Change: now the ngx_http_charset_module works for subrequests, if the response has no "Content-Type" header line. *) Bugfix: if the "proxy_pass" directive has no URI part, then the "proxy_redirect default" directive add the unnecessary slash in start of the rewritten redirect. *) Bugfix: the internal redirect always transform client's HTTP method to GET, now the transformation is made for the "X-Accel-Redirect" redirects only and if the method is not HEAD; bug appeared in 0.3.42. *) Bugfix: the ngx_http_perl_module could not be built, if the perl was built with the threads support; bug appeared in 0.3.46.
author Igor Sysoev <http://sysoev.ru>
date Mon, 29 May 2006 00:00:00 +0400
parents d2ae1c9f1fd3
children 3866d57d9cfd
comparison
equal deleted inserted replaced
201:958c1992c173 202:ca5f86d94316
1158 1158
1159 if (flags & NGX_HTTP_ZERO_IN_URI) { 1159 if (flags & NGX_HTTP_ZERO_IN_URI) {
1160 r->zero_in_uri = 1; 1160 r->zero_in_uri = 1;
1161 } 1161 }
1162 1162
1163 if (r->method != NGX_HTTP_HEAD) {
1164 r->method = NGX_HTTP_GET;
1165 }
1166
1163 ngx_http_internal_redirect(r, uri, &args); 1167 ngx_http_internal_redirect(r, uri, &args);
1164 return; 1168 return;
1165 } 1169 }
1166 1170
1167 ngx_http_upstream_send_response(r, u); 1171 ngx_http_upstream_send_response(r, u);