feross / feross/simple-get

JSON.parse error for 204 status code (no content)

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
402
Forks
49
PR merge metrics
No merged PRs in 30d

Description

So I'm sending a JSON object via the POST method and using `.concat`, but the problem is the endpoint is returning 204 No Content and `simple-get` is trying to parse that. I think the correct behavior in this case would be to return an empty object or even null.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.