这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ecthiender
Copy link
Contributor

@ecthiender ecthiender commented May 13, 2019

Description

In remote schema when "forward all headers from client" option was checked, and the client sent a content-type header, there were two content-type headers that were being sent. Fixed that.

Affected components

  • Server

Related Issues

#2159

Solution and Design

Ignore any content-type header sent by the client.

Steps to test and verify

  1. Add a remote schema, with "forward client headers" option checked
  2. Send a query to remote server with content-type header set
  3. Observe, that content-type header is application/json and no duplicate headers are sent.

Limitations, known bugs & workarounds

  - the wreqOptions helper function would add a content-type header to
  every request. Fixed that to check if it exists and only add when its
  missing.
@ecthiender ecthiender requested a review from 0x777 as a code owner May 13, 2019 07:41
@ecthiender ecthiender self-assigned this May 13, 2019
@ecthiender ecthiender added c/server Related to server k/bug Something isn't working labels May 13, 2019
@netlify
Copy link

netlify bot commented May 13, 2019

Deploy preview for hasura-docs ready!

Built with commit f17debe

https://deploy-preview-2170--hasura-docs.netlify.com

@hasura-bot
Copy link
Contributor

Review app for commit 2781bc7 deployed to Heroku: https://hge-ci-pull-2170.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2170-2781bc7f

@hasura-bot
Copy link
Contributor

Review app for commit f17debe deployed to Heroku: https://hge-ci-pull-2170.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2170-f17debe0

@0x777 0x777 merged commit ee783e1 into hasura:master May 13, 2019
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-2170.herokuapp.com is deleted

polRk pushed a commit to polRk/graphql-engine that referenced this pull request Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/server Related to server k/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants