Skip to content

Conversation

@giacomorebonato
Copy link
Contributor

Currently behaviour is expecting that headers are passed in the format: "key:value".
Hence by splitting by ":" key becomes the header name and value, its value.

But value can contain other ":", for example with Hasura it is a JSON string.
In that case the header passed doesn't get passed properly.

This change is to accept the header in the format "key:{"attr": value}", with the split happening only on the first ":".

@aexol aexol merged commit 0ea7750 into graphql-editor:master Dec 30, 2021
@aexol
Copy link
Collaborator

aexol commented Dec 30, 2021

Thanks!

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