Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Fixing 200 HTTP response with empty body #340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Yooooomi
Copy link

@Yooooomi Yooooomi commented Apr 6, 2020

I just encountered a case where cloudflare were returning 200 OK, but the code was still throwing an error. Fixed that by checking the length of the body and also the response status code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants