hasura / graphqurl

curl for GraphQL with autocomplete, subscriptions and GraphiQL. Also a dead-simple universal javascript GraphQL client.
Apache License 2.0
3.34k stars 101 forks source link

Don't modify header value when parsing corresponding CLI argument #104

Closed daa closed 2 years ago

daa commented 3 years ago

This an alternative to #82 and solves the same problem: gq cuts provided header value after colon but it shouldn't do that. This PR reconstructs header value from parts obtained after parsing cli argument and extracting header name thus making in possible to pass intended header value to query function.