From bf14b000e6cae87ff2bbd2ab813195fdd2e4b69f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 23 Apr 2009 16:38:59 +0000 Subject: ngx_path_separator() --- src/http/ngx_http_request.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/http/ngx_http_request.c') 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) { -- cgit v1.2.3