Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.c @ 2744:e50a2faac31d
ngx_path_separator()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 23 Apr 2009 16:38:59 +0000 |
parents | 6caf687a831f |
children | d478379e51ac |
comparison
equal
deleted
inserted
replaced
2743:d8316f307b6a | 2744:e50a2faac31d |
---|---|
1585 if (ch == ':') { | 1585 if (ch == ':') { |
1586 last = i; | 1586 last = i; |
1587 continue; | 1587 continue; |
1588 } | 1588 } |
1589 | 1589 |
1590 if (ch == '/' || ch == '\0') { | 1590 if (ngx_path_separator(ch) || ch == '\0') { |
1591 return -1; | 1591 return -1; |
1592 } | 1592 } |
1593 | |
1594 #if (NGX_WIN32) | |
1595 if (ch == '\\') { | |
1596 return -1; | |
1597 } | |
1598 #endif | |
1599 } | 1593 } |
1600 | 1594 |
1601 if (dot) { | 1595 if (dot) { |
1602 last--; | 1596 last--; |
1603 } | 1597 } |