aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-04-30 17:12:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-04-30 17:12:29 +0000
commitbea02ddebec7b49cd087ccde78cba0cd0eaf1882 (patch)
treee908293e6c75784e9917409239a24c094c7c0631 /lib
parent3fb257c39c0dfd0163ec67101b96d328d8d5efe8 (diff)
stop parsing Host: host names at colons too
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index d736dfdfa..bfef5cecf 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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) {