Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support already aborted requests #673

Merged
merged 2 commits into from
Nov 6, 2024
Merged

Conversation

kettanaito
Copy link
Member

Changes

The handleRequest function will now correctly handle intercepted requests where request.signal.aborted is true. Previously, it only added the listener for the abort event, but if the request has already been aborted by the time it's made, that event was never dispatched.

@kettanaito kettanaito merged commit 20e9ce4 into main Nov 6, 2024
2 checks passed
@kettanaito kettanaito deleted the fix/support-aborted-requests branch November 6, 2024 10:56
@kettanaito
Copy link
Member Author

Released: v0.36.10 🎉

This has been released in v0.36.10!

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.

1 participant