1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

stop parsing Host: host names at colons too

This commit is contained in:
Daniel Stenberg 2003-04-30 17:12:29 +00:00
parent 3fb257c39c
commit bea02ddebe

View 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) {