aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-23 16:38:59 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-23 16:38:59 +0000
commitbf14b000e6cae87ff2bbd2ab813195fdd2e4b69f (patch)
tree18e88d1095a6a6e30dcf8695136c6d505d0dd6d6 /src/http/ngx_http_request.c
parentc28ff717cb27e01cc40bdaebdd2c3826c0a7707d (diff)
downloadnginx-bf14b000e6cae87ff2bbd2ab813195fdd2e4b69f.tar.gz
nginx-bf14b000e6cae87ff2bbd2ab813195fdd2e4b69f.zip
ngx_path_separator()
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 31ab640e2..d06c6dd3f 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1587,15 +1587,9 @@ ngx_http_validate_host(u_char *host, size_t len)
continue;
}
- if (ch == '/' || ch == '\0') {
+ if (ngx_path_separator(ch) || ch == '\0') {
return -1;
}
-
-#if (NGX_WIN32)
- if (ch == '\\') {
- return -1;
- }
-#endif
}
if (dot) {