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
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!");
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;
if(data->bits.httpproxy) {
conn->curl_do = http;
conn->curl_done = http_done;
+ conn->curl_close = http_close;
}
else {
conn->curl_do = ftp;