这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/src-lib/Hasura/GraphQL/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ execRemoteGQ manager userInfo reqHdrs q rsi opDef = do
n `notElem` [ "Content-Length", "Content-MD5", "User-Agent", "Host"
, "Origin", "Referer" , "Accept", "Accept-Encoding"
, "Accept-Language", "Accept-Datetime"
, "Cache-Control", "Connection", "DNT"
, "Cache-Control", "Connection", "DNT", "Content-Type"
]

filterUserVars hdrs =
Expand Down
1 change: 1 addition & 0 deletions server/tests-py/graphql_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ def resolve_wassup(self, info, arg):
if not (headers.get_all('x-hasura-test') == ['abcd'] and
headers.get_all('x-hasura-role') == ['user'] and
headers.get_all('x-hasura-user-id') == ['abcd1234'] and
headers.get_all('content-type') == ['application/json'] and
headers.get_all('Authorization') == ['Bearer abcdef']):
raise Exception('headers dont match')

Expand Down
3 changes: 2 additions & 1 deletion server/tests-py/test_schema_stitching.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ def test_remote_schema_forward_headers(self, hge_ctx):
'x-hasura-test': 'xyzz',
'x-hasura-role': 'user',
'x-hasura-user-id': 'abcd1234',
'Authorization': 'Bearer abcdef'
'content-type': 'application/json',
'Authorization': 'Bearer abcdef',
}
if hge_ctx.hge_key:
hdrs['x-hasura-admin-secret'] = hge_ctx.hge_key
Expand Down