mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
stop parsing Host: host names at colons too
This commit is contained in:
parent
3fb257c39c
commit
bea02ddebe
@ -748,8 +748,8 @@ CURLcode Curl_http(struct connectdata *conn)
|
|||||||
start++;
|
start++;
|
||||||
ptr = start; /* start host-scanning here */
|
ptr = start; /* start host-scanning here */
|
||||||
|
|
||||||
/* scan through the string to find the end */
|
/* scan through the string to find the end (space or colon) */
|
||||||
while(*ptr && !isspace((int)*ptr))
|
while(*ptr && !isspace((int)*ptr) && !(':'==*ptr))
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|
||||||
if(ptr != start) {
|
if(ptr != start) {
|
||||||
|
Loading…
Reference in New Issue
Block a user