summaryrefslogtreecommitdiff
path: root/ext/fetch/22_http_client.js
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2024-04-11 21:31:11 +0100
committerGitHub <noreply@github.com>2024-04-11 20:31:11 +0000
commit5758470ee47063d4a0b65fcba1441dfb8a8ace54 (patch)
tree1c2a31cd6e79f4a5778ac253dd160cd62ac583f2 /ext/fetch/22_http_client.js
parent4ab0215727be2f2c97e1c7d05b86aa1b93007e3b (diff)
Revert "refactor(ext/net): extract TLS key and certificate from inter… (#23325)
…faces (#23296)" This reverts commit e190acbfa8b41f92291e73c405735ba0d7b5b172. Reverting because it broke stable API type declarations. We will reland it for v1.43 with updated interfaces
Diffstat (limited to 'ext/fetch/22_http_client.js')
-rw-r--r--ext/fetch/22_http_client.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/fetch/22_http_client.js b/ext/fetch/22_http_client.js
index 061a3dda8..e1389bbe1 100644
--- a/ext/fetch/22_http_client.js
+++ b/ext/fetch/22_http_client.js
@@ -25,7 +25,12 @@ const { ObjectDefineProperty } = primordials;
*/
function createHttpClient(options) {
options.caCerts ??= [];
- const keyPair = loadTlsKeyPair("Deno.createHttpClient", options);
+ const keyPair = loadTlsKeyPair(
+ options.cert,
+ undefined,
+ options.key,
+ undefined,
+ );
return new HttpClient(
op_fetch_custom_client(
options,