Proper backtracking after space in a request line.

This commit is contained in:
Ruslan Ermilov 2013-11-19 06:57:58 +04:00
parent f04e0507f8
commit efc1b505d9
1 changed files with 2 additions and 0 deletions

View File

@ -614,6 +614,7 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
default:
r->space_in_uri = 1;
state = sw_check_uri;
p--;
break;
}
break;
@ -667,6 +668,7 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
default:
r->space_in_uri = 1;
state = sw_uri;
p--;
break;
}
break;