[nginx] svn commit: r4643 - trunk/src/core

ru at nginx.com ru at nginx.com
Mon May 21 10:55:11 UTC 2012


Author: ru
Date: 2012-05-21 10:55:10 +0000 (Mon, 21 May 2012)
New Revision: 4643
URL: http://trac.nginx.org/nginx/changeset/4643/nginx

Log:
Removed historical and now redundant syntax pre-checks in ngx_parse_url().


Modified:
   trunk/src/core/ngx_inet.c

Modified: trunk/src/core/ngx_inet.c
===================================================================
--- trunk/src/core/ngx_inet.c	2012-05-17 18:10:34 UTC (rev 4642)
+++ trunk/src/core/ngx_inet.c	2012-05-21 10:55:10 UTC (rev 4643)
@@ -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);
     }



More information about the nginx-devel mailing list