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

Fixed Content-Length header not being sent #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tspecht
Copy link

@tspecht tspecht commented Feb 22, 2018

This fixes the issue of the standard Content-Length header not being sent. Due to this header missing so far modern framework and webservers, which validate the incoming request strictly, will discard the body as they assume it's empty due to the missing Content-Length header.

@@ -277,7 +279,7 @@
__request(that.options.method || "post", that.getUrl(), headers, {
query: fragmentedQuery,
variables: that.cleanAutoDeclareAnnotations(variables)
}, !!that.options.asJSON, that.options.onRequestError, function (response, status) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

urkle added a commit to urkle/graphql.js that referenced this pull request Aug 20, 2022
@urkle urkle mentioned this pull request Aug 20, 2022
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.

None yet

2 participants