comparison src/http/ngx_http_parse.c @ 452:23fb87bddda1 release-0.1.1

nginx-0.1.1-RELEASE import *) Feature: the gzip_types directive. *) Feature: the tcp_nodelay directive. *) Feature: the send_lowat directive is working not only on OSes that support kqueue NOTE_LOWAT, but also on OSes that support SO_SNDLOWAT. *) Feature: the setproctitle() emulation for Linux and Solaris. *) Bugfix: the "Location" header rewrite bug fixed while the proxying. *) Bugfix: the ngx_http_chunked_module module may get caught in an endless loop. *) Bugfix: the /dev/poll module bugs fixed. *) Bugfix: the responses were corrupted when the temporary files were used while the proxying. *) Bugfix: the unescaped requests were passed to the backend. *) Bugfix: while the build configuration on Linux 2.4 the --with-poll_module parameter was required.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 11 Oct 2004 15:07:03 +0000
parents 42d11f017717
children a88a3e4e158f
comparison
equal deleted inserted replaced
451:f40362e47689 452:23fb87bddda1
215 case ' ': 215 case ' ':
216 r->uri_end = p - 1; 216 r->uri_end = p - 1;
217 state = sw_http_09; 217 state = sw_http_09;
218 break; 218 break;
219 case '.': 219 case '.':
220 r->complex_uri = 1;
221 state = sw_uri;
222 break;
220 case '%': 223 case '%':
221 r->complex_uri = 1; 224 r->quoted_uri = 1;
222 state = sw_uri; 225 state = sw_uri;
223 break; 226 break;
224 case '/': 227 case '/':
225 r->complex_uri = 1; 228 r->complex_uri = 1;
226 break; 229 break;
257 case '/': 260 case '/':
258 r->uri_ext = NULL; 261 r->uri_ext = NULL;
259 state = sw_after_slash_in_uri; 262 state = sw_after_slash_in_uri;
260 break; 263 break;
261 case '%': 264 case '%':
262 r->complex_uri = 1; 265 r->quoted_uri = 1;
263 state = sw_uri; 266 state = sw_uri;
264 break; 267 break;
265 case '?': 268 case '?':
266 r->args_start = p; 269 r->args_start = p;
267 state = sw_uri; 270 state = sw_uri;
520 523
521 if (ch >= '0' && ch <= '9') { 524 if (ch >= '0' && ch <= '9') {
522 break; 525 break;
523 } 526 }
524 527
525 /* IIS can send duplicate "HTTP/1.1 ..." lines */ 528 /* IIS may send the duplicate "HTTP/1.1 ..." lines */
526 if (ch == '/' 529 if (ch == '/'
527 && r->proxy 530 && r->proxy
528 && p - r->header_start == 5 531 && p - r->header_start == 5
529 && ngx_strncmp(r->header_start, "HTTP", 4) == 0) 532 && ngx_strncmp(r->header_start, "HTTP", 4) == 0)
530 { 533 {