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(errors): body can be null (or undefined) #9

Closed
wants to merge 1 commit into from

Conversation

plchampigny
Copy link
Contributor

This PR fixes an issue when having 401 from package registries without body.

@plchampigny
Copy link
Contributor Author

Related to #6

@isaacs
Copy link
Contributor

isaacs commented Sep 27, 2019

Needs a test, but we can add that if you don't get to it. This is definitely a bug. Thanks!

@isaacs
Copy link
Contributor

isaacs commented Oct 2, 2019

Hm, I think as of #11 the body actually can't be undefined or null. If the server doesn't return a response, it'll just be a zero-length buffer object.

@isaacs isaacs closed this in e3a0186 Oct 4, 2019
@isaacs isaacs mentioned this pull request Oct 4, 2019
@plchampigny
Copy link
Contributor Author

Well thank you for the follow up!

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