mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
node:https: fix prototype chain of Agent (#15160)
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com>
This commit is contained in:
@@ -42,7 +42,7 @@ function Agent(options) {
|
||||
this.maxCachedSessions = this.options.maxCachedSessions;
|
||||
if (this.maxCachedSessions === undefined) this.maxCachedSessions = 100;
|
||||
}
|
||||
Agent.prototype = Object.create(http.Agent.prototype);
|
||||
$toClass(Agent, "Agent", http.Agent);
|
||||
Agent.prototype.createConnection = http.createConnection;
|
||||
|
||||
var https = {
|
||||
|
||||
Reference in New Issue
Block a user