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(data->port != PORT_HTTP)
|
||||
data->ptr_host = maprintf("Host: %s:%d\r\n", host, data->port);
|
||||
else
|
||||
data->ptr_host = maprintf("Host: %s\r\n", host);
|
||||
data->ptr_host = maprintf("Host: %s:%d\r\n", host, data->remote_port);
|
||||
}
|
||||
|
||||
if(!checkheaders(data, "Pragma:"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user