Skip to content

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.

__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.

2 participants