corrected the Host: header's port number

This commit is contained in:
Daniel Stenberg 2000-07-28 07:55:21 +00:00
parent 3d8f377561
commit f50fd062e9
1 changed files with 1 additions and 4 deletions

View File

@ -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:"))