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(resource-base): default body to empty object #205

Merged
merged 2 commits into from
Dec 3, 2018
Merged

Conversation

itsachen
Copy link
Contributor

@itsachen itsachen commented Dec 1, 2018

What

  • Defaults response body to an empty object

Why

If an endpoint does not contain a body (ex. a 204 response) then currently the library will fail at this step as it attempts to set the _response property on a non-existent body. The error thrown is Object.defineProperty called on non-object.

@itsachen itsachen added the Bug label Dec 1, 2018
@itsachen itsachen requested review from a team, pallavi and jesscxu December 1, 2018 00:24
Co-Authored-By: itsachen <pandaman0529@gmail.com>
@dmlittle dmlittle assigned itsachen and unassigned dmlittle and pallavi Dec 3, 2018
@itsachen itsachen merged commit 0a439ca into master Dec 3, 2018
@itsachen itsachen deleted the set-empty-body branch December 3, 2018 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants