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

Handle empty responses on 204 and zero Content-Length #111

Merged
merged 1 commit into from May 22, 2018

Conversation

marnusw
Copy link
Contributor

@marnusw marnusw commented May 14, 2018

This is a proposed solution for #107, adding support for empty response bodies. When the status is 204 or a Content-Length header is present and zero the body will not be parsed and a default empty object will be returned.

@ghost ghost added feature Feature: new addition or enhancement to existing solutions good first review PR's that are suitable for first-time contributors to review. labels May 14, 2018
@codecov-io
Copy link

codecov-io commented May 14, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@fe3b0e9). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##             master    #111   +/-   ##
========================================
  Coverage          ?   90.8%           
========================================
  Files             ?       2           
  Lines             ?     261           
  Branches          ?      83           
========================================
  Hits              ?     237           
  Misses            ?      21           
  Partials          ?       3
Impacted Files Coverage Δ
src/restLink.ts 90.76% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe3b0e9...0aac8a8. Read the comment docs.

@fbartho fbartho merged commit 0aac8a8 into apollographql:master May 22, 2018
@fbartho
Copy link
Collaborator

fbartho commented May 22, 2018

Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature: new addition or enhancement to existing solutions good first review PR's that are suitable for first-time contributors to review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants