diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2001-03-02 15:34:15 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-02 15:34:15 +0000 | 
| commit | d1cfbd51b5f6e4246cec86ce3c9b7b1cde2f860a (patch) | |
| tree | 5e1fa1259498a72310c2e1257c298525850be488 /lib/http.c | |
| parent | a3ba6b7a6a4bf12e22e21dcdfb2359afadf45bb9 (diff) | |
remade the port number stuff so that following locations work and doing
intermixed HTTP and FTP persistant connections also work!
Diffstat (limited to 'lib/http.c')
| -rw-r--r-- | lib/http.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/lib/http.c b/lib/http.c index 641373ae2..a77cc0e45 100644 --- a/lib/http.c +++ b/lib/http.c @@ -465,14 +465,14 @@ CURLcode Curl_http(struct connectdata *conn)      /* if ptr_host is already set, it is OK since we only re-use connections         to the very same host and port */ -    if(((conn->protocol&PROT_HTTPS) && (data->remote_port == PORT_HTTPS)) || -       (!(conn->protocol&PROT_HTTPS) && (data->remote_port == PORT_HTTP)) ) +    if(((conn->protocol&PROT_HTTPS) && (conn->remote_port == PORT_HTTPS)) || +       (!(conn->protocol&PROT_HTTPS) && (conn->remote_port == PORT_HTTP)) )        /* If (HTTPS on port 443) OR (non-HTTPS on port 80) then don't include           the port number in the host string */        conn->allocptr.host = aprintf("Host: %s\r\n", host);      else        conn->allocptr.host = aprintf("Host: %s:%d\r\n", host, -                                    data->remote_port); +                                    conn->remote_port);    }    if(!checkheaders(data, "Pragma:")) | 
