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: allow reading body from non-2xx responses in net.request (#21055) #21295

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Nov 26, 2019

Backport of #21285

See that PR for details.

Notes: Net module requests no longer raise errors when non-2xx responses are received.

* fix(urlrequest): allow non-2xx repsponse results

- closes #21046

* test(net): add test cases to verify non-2xx body

* test(session): update spec to match clientrequest behavior

* test(net): update test cases to match clientrequest behavior

* spec: clean up async net spec
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Nov 26, 2019
@trop trop bot requested a review from MarshallOfSound November 26, 2019 21:10
@trop trop bot added 7-1-x backport This is a backport PR labels Nov 26, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Nov 26, 2019
@MarshallOfSound MarshallOfSound merged commit 79b3fcb into 7-1-x Nov 27, 2019
@release-clerk
Copy link

release-clerk bot commented Nov 27, 2019

Release Notes Persisted

Net module requests no longer raise errors when non-2xx responses are received.

@MarshallOfSound MarshallOfSound deleted the trop/7-1-x-bp-fix-allow-reading-body-from-non-2xx-responses-in-net-request-21055--1574802623748 branch November 27, 2019 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7-1-x backport This is a backport PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants