Skip to content

Commit

Permalink
Let agent be read-write
Browse files Browse the repository at this point in the history
Fixes #16264
  • Loading branch information
Jarred-Sumner committed Jan 9, 2025
1 parent 76800b0 commit 7a1438a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/node/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,10 @@ class ClientRequest extends OutgoingMessage {
return this.#agent;
}

set agent(value) {
this.#agent = value;
}

#createStream() {
if (!this.#stream) {
var self = this;
Expand Down

1 comment on commit 7a1438a

@Pckool
Copy link

@Pckool Pckool commented on 7a1438a Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the quick fix. We have a massive repo with over 2k deps we're migrating and this issue popped up a couple times. I'll report any more instances of this I can find. Thanks again!

Please sign in to comment.