diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-07-28 07:55:21 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-07-28 07:55:21 +0000 |
commit | f50fd062e9552a0f98dd962c66f2a475b4994d78 (patch) | |
tree | 45e7083a29cb441ad01de9236c319c2e091725ea | |
parent | 3d8f37756115beecaa6a00c1760fd022a1c0f304 (diff) |
corrected the Host: header's port number
-rw-r--r-- | lib/http.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/http.c b/lib/http.c index 9372e488e..711775bbd 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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:")) |