When doing "Copy as Curl" on a request - the header is copied in all lower case.
E.g. I have a query with a header called "X-Application" - when doing a "Copy as Curl" it is copied as "x-application"
Desktop (please complete the following information):
For anybody venturing into this issue and would like to pick it up, here is the generation logic 馃槃 Losing case may either be happening during exportHarRequest, or during HTTPSnippet convert.
I can confirm that we are loosing case during snippet conversion. It seems related to https://github.com/Kong/httpsnippet/issues/74 馃
https://github.com/Kong/httpsnippet/pull/178 has been merged, which resolves the linked issue - thanks @jgiovaresco! Once a new version of httpsnippet is released, it will just be a matter of updating Insomnia to consume that new version.
1.23.0 for httpsnippet has been released: https://github.com/Kong/httpsnippet/releases/tag/1.23.0
Most helpful comment
I can confirm that we are loosing case during snippet conversion. It seems related to https://github.com/Kong/httpsnippet/issues/74 馃