fix tls sockets

This commit is contained in:
ading2210 2024-03-12 17:43:59 -04:00
parent 1748ca7dd9
commit 45b0084c79
8 changed files with 29 additions and 25 deletions

View file

@ -39,14 +39,10 @@ class TLSSocket {
this.cleanup(error);
}
}
let request_options = {
_connect_only: 1,
}
if (this.options.verbose) {
request_options._libcurl_verbose = 1;
}
this.http_handle = perform_request(this.url, request_options, data_callback, finish_callback, headers_callback, null);
this.http_handle = create_handle(this.url, data_callback, finish_callback, headers_callback);
_tls_socket_set_options(this.http_handle, +this.options.verbose);
start_request(this.http_handle);
}
recv() {