aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-07-25 21:17:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-07-25 21:17:45 +0000
commit293cae68bf7f07bdb53b59b3d3f9f1edec4a91de (patch)
treee4f1325d9e99cf3fb85f64ef816748a52c4d78e1
parent1156252f925cd67dcb8c13a1f4328cc79bbf97f7 (diff)
uses the new curl_close function to clean up the http-specific auth_host
-rw-r--r--lib/url.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index a8fe1ec77..d253fe566 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -893,6 +893,7 @@ CURLcode curl_connect(CURL *curl, CURLconnect **in_connect)
conn->protocol |= PROT_HTTP;
conn->curl_do = http;
conn->curl_done = http_done;
+ conn->curl_close = http_close;
}
else if (strequal(conn->proto, "HTTPS")) {
#ifdef USE_SSLEAY
@@ -905,6 +906,7 @@ CURLcode curl_connect(CURL *curl, CURLconnect **in_connect)
conn->curl_do = http;
conn->curl_done = http_done;
conn->curl_connect = http_connect;
+ conn->curl_close = http_close;
#else /* USE_SSLEAY */
failf(data, "SSL is disabled, https: not supported!");
@@ -924,6 +926,7 @@ CURLcode curl_connect(CURL *curl, CURLconnect **in_connect)
conn->protocol |= PROT_GOPHER;
conn->curl_do = http;
conn->curl_done = http_done;
+ conn->curl_close = http_close;
}
else if(strequal(conn->proto, "FTP")) {
char *type;
@@ -935,6 +938,7 @@ CURLcode curl_connect(CURL *curl, CURLconnect **in_connect)
if(data->bits.httpproxy) {
conn->curl_do = http;
conn->curl_done = http_done;
+ conn->curl_close = http_close;
}
else {
conn->curl_do = ftp;