Mercurial > hg > nginx-mail
comparison src/http/modules/ngx_http_proxy_module.c @ 440:b246022ef454 NGINX_0_7_18
nginx 0.7.18
*) Change: the "underscores_in_headers" directive; now nginx does not
allows underscores in a client request header line names.
*) Feature: the ngx_http_secure_link_module.
*) Feature: the "real_ip_header" directive supports any header.
*) Feature: the "log_subrequest" directive.
*) Feature: the $realpath_root variable.
*) Feature: the "http_502" and "http_504" parameters of the
"proxy_next_upstream" directive.
*) Bugfix: the "http_503" parameter of the "proxy_next_upstream" or
"fastcgi_next_upstream" directives did not work.
*) Bugfix: nginx might send a "Transfer-Encoding: chunked" heaer line
for HEAD requests.
*) Bugfix: now accept threshold depends on worker_connections.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 13 Oct 2008 00:00:00 +0400 |
parents | 79c5df00501e |
children | b4f69f2ef02c |
comparison
equal
deleted
inserted
replaced
438:b453a4324c60 | 440:b246022ef454 |
---|---|
145 static ngx_conf_bitmask_t ngx_http_proxy_next_upstream_masks[] = { | 145 static ngx_conf_bitmask_t ngx_http_proxy_next_upstream_masks[] = { |
146 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR }, | 146 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR }, |
147 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT }, | 147 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT }, |
148 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER }, | 148 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER }, |
149 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 }, | 149 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 }, |
150 { ngx_string("http_502"), NGX_HTTP_UPSTREAM_FT_HTTP_502 }, | |
150 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 }, | 151 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 }, |
152 { ngx_string("http_504"), NGX_HTTP_UPSTREAM_FT_HTTP_504 }, | |
151 { ngx_string("http_404"), NGX_HTTP_UPSTREAM_FT_HTTP_404 }, | 153 { ngx_string("http_404"), NGX_HTTP_UPSTREAM_FT_HTTP_404 }, |
152 { ngx_string("off"), NGX_HTTP_UPSTREAM_FT_OFF }, | 154 { ngx_string("off"), NGX_HTTP_UPSTREAM_FT_OFF }, |
153 { ngx_null_string, 0 } | 155 { ngx_null_string, 0 } |
154 }; | 156 }; |
155 | 157 |
1212 | 1214 |
1213 umcf = ngx_http_get_module_main_conf(r, ngx_http_upstream_module); | 1215 umcf = ngx_http_get_module_main_conf(r, ngx_http_upstream_module); |
1214 | 1216 |
1215 for ( ;; ) { | 1217 for ( ;; ) { |
1216 | 1218 |
1217 rc = ngx_http_parse_header_line(r, &r->upstream->buffer); | 1219 rc = ngx_http_parse_header_line(r, &r->upstream->buffer, 1); |
1218 | 1220 |
1219 if (rc == NGX_OK) { | 1221 if (rc == NGX_OK) { |
1220 | 1222 |
1221 /* a header line has been parsed successfully */ | 1223 /* a header line has been parsed successfully */ |
1222 | 1224 |