diff options
| author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-07-21 02:18:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-21 02:18:07 +0200 |
| commit | da709729e3dd6f310182581ca1c6380ad51443fc (patch) | |
| tree | e4b49ed701938a9abd98631ffeb9b9a2fced0257 /ext/node/polyfills/https.ts | |
| parent | 5ff040bf59b1665f0545f9b6e732b027ab676446 (diff) | |
fix(node/http): add encrypted field to FakeSocket (#19886)
Fixes #19557
Diffstat (limited to 'ext/node/polyfills/https.ts')
| -rw-r--r-- | ext/node/polyfills/https.ts | 3 |
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) { |
