]> granicus.if.org Git - apache/commitdiff
remove comment; empty host headers can happen in proxy requests
authorStefan Fritsch <sf@apache.org>
Sun, 30 Dec 2012 20:58:39 +0000 (20:58 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 30 Dec 2012 20:58:39 +0000 (20:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426988 13f79535-47bb-0310-9956-ffa450edef68

server/vhost.c

index fca2d331a3ca5657ebf05e55932ab0aad8ac5c7e..ebce5e9d0e9f4e3330d0a79b2805feb9c1969306 100644 (file)
@@ -815,10 +815,7 @@ static int fix_hostname(request_rec *r, const char *host_header,
 
     src = host_header ? host_header : r->hostname;
 
-    /* According to RFC 2616, Host header field CAN be blank.
-     * XXX But only 'if the requested URI does not include an Internet host
-     * XXX name'. Can this happen?
-     */
+    /* According to RFC 2616, Host header field CAN be blank */
     if (!*src) {
         return is_v6literal;
     }