From: Daniel Stenberg Date: Wed, 30 Apr 2003 17:12:29 +0000 (+0000) Subject: stop parsing Host: host names at colons too X-Git-Tag: curl-7_10_5~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bea02ddebec7b49cd087ccde78cba0cd0eaf1882;p=curl stop parsing Host: host names at colons too --- 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) {