summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/https.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/https.ts')
-rw-r--r--ext/node/polyfills/https.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/node/polyfills/https.ts b/ext/node/polyfills/https.ts
index c504f0874..46d4bd087 100644
--- a/ext/node/polyfills/https.ts
+++ b/ext/node/polyfills/https.ts
@@ -50,6 +50,8 @@ export class Server extends HttpServer {
: this._opts.key,
};
}
+
+ _encrypted = true;
}
export function createServer(opts, requestListener?: ServerHandler) {
return new Server(opts, requestListener);
@@ -110,6 +112,7 @@ const globalAgent = new Agent({
/** HttpsClientRequest class loosely follows http.ClientRequest class API. */
class HttpsClientRequest extends ClientRequest {
+ override _encrypted: true;
override defaultProtocol = "https:";
override _getClient(): Deno.HttpClient | undefined {
if (caCerts === null) {