Skip to content
Snippets Groups Projects
Commit bea02dde authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

stop parsing Host: host names at colons too

parent 3fb257c3
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment