Skip to content

fix(ClientRequest): remove the fallback Agent if the request option agent is undefined#731

Merged
kettanaito merged 3 commits intomainfrom
fix-unix-socket-handling
Jul 17, 2025
Merged

fix(ClientRequest): remove the fallback Agent if the request option agent is undefined#731
kettanaito merged 3 commits intomainfrom
fix-unix-socket-handling

Conversation

@mikicho
Copy link
Copy Markdown
Member

@mikicho mikicho commented Jun 11, 2025

#722 (comment)

mswjs/msw#1600
nock/nock#2839

Changes

Removes the custom logic that manually created a fallback HTTP Agent for the scenarios when RequestOptions.agent was undefined. That does not seem to be needed anymore (or at all).

@mikicho mikicho requested a review from kettanaito June 11, 2025 20:06
Copy link
Copy Markdown
Member

@kettanaito kettanaito left a comment

Choose a reason for hiding this comment

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

Looks fantastic. Thank you!

@kettanaito kettanaito changed the title fix(ClientRequest): remove default custom agent fix(ClientRequest): remove the fallback Agent if the request option agent is undefined Jul 17, 2025
@kettanaito kettanaito merged commit b8739fa into main Jul 17, 2025
2 checks passed
@kettanaito kettanaito deleted the fix-unix-socket-handling branch July 17, 2025 13:21
@kettanaito
Copy link
Copy Markdown
Member

Released: v0.39.3 🎉

This has been released in v0.39.3!

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants