From: Ruslan Ermilov Date: Mon, 21 May 2012 10:55:10 +0000 (+0000) Subject: Removed historical and now redundant syntax pre-checks in ngx_parse_url(). X-Git-Tag: release-1.3.1~20 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=d230df40b295d1243ded61b5758389b77d23786f;p=nginx.git Removed historical and now redundant syntax pre-checks in ngx_parse_url(). --- diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index d2bbbfb58..16799be51 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c @@ -522,11 +522,6 @@ ngx_parse_url(ngx_pool_t *pool, ngx_url_t *u) return ngx_parse_unix_domain_url(pool, u); } - if ((p[0] == ':' || p[0] == '/') && !u->listen) { - u->err = "invalid host"; - return NGX_ERROR; - } - if (p[0] == '[') { return ngx_parse_inet6_url(pool, u); }