diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-10-20 13:48:38 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-10-20 13:48:38 +0000 |
commit | c44b10de41ffca204acf11f36093c24521119239 (patch) | |
tree | c88c03406fc940353868f63b600acafa56366e81 /lib/url.c | |
parent | 135cc036aa1425c52c3cf90176158c19e109cb9b (diff) |
remote_port used in Host: headers only when non-default
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -961,7 +961,7 @@ CURLcode curl_connect(CURL *curl, CURLconnect **in_connect) conn->curl_close = http_close; #else /* USE_SSLEAY */ - failf(data, "SSL is disabled, https: not supported!"); + failf(data, "libcurl was built with SSL disabled, https: not supported!"); return CURLE_UNSUPPORTED_PROTOCOL; #endif /* !USE_SSLEAY */ } @@ -1137,7 +1137,8 @@ CURLcode curl_connect(CURL *curl, CURLconnect **in_connect) *tmp++ = '\0'; data->port = atoi(tmp); } - + data->remote_port = data->port; /* it is the same port */ + /* Connect to target host right on */ conn->hp = GetHost(data, conn->name, &conn->hostent_buf); if(!conn->hp) { |