Mercurial > hg > nginx
changeset 4714:c3bddd3df3fb stable-1.2
Merge of r4643:
Removed historical and now redundant syntax pre-checks in ngx_parse_url().
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 02 Jul 2012 15:33:35 +0000 |
parents | c0eeb819ecf1 |
children | 474bbe8ca79c |
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 Mon Jul 02 14:42:08 2012 +0000 +++ b/src/core/ngx_inet.c Mon Jul 02 15:33:35 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); }