skip URI trailing spaces under Win32

This commit is contained in:
Igor Sysoev 2010-01-28 14:09:28 +00:00
parent 918ef947da
commit 77860d74a5

View File

@ -788,9 +788,11 @@ ngx_http_process_request_line(ngx_event_t *rev)
p = r->uri.data + r->uri.len - 1;
if (*p == '.') {
if (*p == '.' || *p == ' ') {
while (--p > r->uri.data && *p == '.') { /* void */ }
while (--p > r->uri.data && (*p == '.' || *p == ' ')) {
/* void */
}
r->uri.len = p + 1 - r->uri.data;