firecamp-io / firecamp

VSCode for APIs, Postman Alternative.
https://firecamp.dev
317 stars 22 forks source link

Camel case headers are changed to small case #128

Closed arunkumaranand closed 2 years ago

arunkumaranand commented 4 years ago

Describe the bug Headers those are in camel cases are converted as small case in request in GraphQL playground.

To Reproduce Steps to reproduce the behavior:

  1. Go to GraphQL Playground and create your request
  2. Go to Header section and a new custom Header "customerType" with any value
  3. Click on 'Send' Request
  4. Go to 'Timeline' view in Response section
  5. Observe the Header keys are converted to small cases (ie. "customerType" -> "customertype")

Expected behavior Expected to retain the same case as entered in the request to the server

Screenshots 0r Video image

Platform (please complete the following information):

Additional context Add any other context about the problem here.

welcome[bot] commented 4 years ago

Welcome to the Firecamp! Thanks and congrats for opening your very first issue in Firecamp. Join the Discord community here https://discord.gg/8hRaqhK Hope you have a great time here :)

pranavwani commented 3 years ago

@arunkumaranand Thanks for raising the issue. According to RFC 7540

header field names MUST be converted to lowercase prior to their encoding in HTTP/2. A request or response containing uppercase header field names MUST be treated as malformed

As currently all the HTTP and GraphQL clients request send via HTTP/2. It can be sent via selecting different versions from the config tab in the upcoming version of the Firecamp.

pranavwani commented 2 years ago

@arunkumaranand closing as not an issue. Please select the v1_1 from the HTTP request config tab which allows passing case-sensitive headers. #reference