Mercurial > hg > nginx
changeset 4642:c1eb924fb6fe
Removed historical and now redundant syntax pre-checks in ngx_parse_url().
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 21 May 2012 10:55:10 +0000 |
parents | 045bb3ef3ffc |
children | bc5f881323b8 |
files | src/core/ngx_inet.c |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_inet.c Thu May 17 18:10:34 2012 +0000 +++ b/src/core/ngx_inet.c Mon May 21 10:55:10 2012 +0000 @@ -522,11 +522,6 @@ 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); }