mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
corrected the Host: header's port number
This commit is contained in:
parent
3d8f377561
commit
f50fd062e9
@ -293,10 +293,7 @@ CURLcode http(struct connectdata *conn)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!checkheaders(data, "Host:")) {
|
if(!checkheaders(data, "Host:")) {
|
||||||
if(data->port != PORT_HTTP)
|
data->ptr_host = maprintf("Host: %s:%d\r\n", host, data->remote_port);
|
||||||
data->ptr_host = maprintf("Host: %s:%d\r\n", host, data->port);
|
|
||||||
else
|
|
||||||
data->ptr_host = maprintf("Host: %s\r\n", host);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!checkheaders(data, "Pragma:"))
|
if(!checkheaders(data, "Pragma:"))
|
||||||
|
Loading…
Reference in New Issue
Block a user