stop parsing Host: host names at colons too
authorDaniel Stenberg <daniel@haxx.se>
Wed, 30 Apr 2003 17:12:29 +0000 (17:12 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 Apr 2003 17:12:29 +0000 (17:12 +0000)
lib/http.c

index d736dfd..bfef5ce 100644 (file)
@@ -748,8 +748,8 @@ CURLcode Curl_http(struct connectdata *conn)
       start++;
     ptr = start; /* start host-scanning here */
 
-    /* scan through the string to find the end */
-    while(*ptr && !isspace((int)*ptr))
+    /* scan through the string to find the end (space or colon) */
+    while(*ptr && !isspace((int)*ptr) && !(':'==*ptr))
       ptr++;
     
     if(ptr != start) {