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: regression which broke auto-destroying http requests #6322

Open
wants to merge 1 commit into
base: v1.x
Choose a base branch
from

Conversation

slippedandmissed
Copy link

Hello!

It appears that the node:http implementation in Bun sets autoDestroy: true on requests whereas it looks like in Node autoDestroy is set to false by default.

This means that in Bun, the if (req.destroyed) check in axios was always being hit.

The observed behavior was that the axios(...) promise was never resolving or throwing an exception.

This looks like a regression introduced in #4787. Axios used to check req.aborted rather than req.destroyed, which fixes this bug.

Thanks!

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.

None yet

1 participant