Kong / Kong/insomnia

Header keys are being lower-cased

Open
#6,353 1 comment 0 reactions 0 assignees View on GitHub
B-bug S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

The headers are sent off as is, without text manipulation.

image

### Actual Behavior

The header is lower cased when sent off

image

However when using the Export Client Code feature, it is not lower-cased and requests work as expected.

![image](https://github.com/Kong/insomnia/assets/1570854/1cb58037-2fac-4d2c-a0cd-e66d9bc96dd6)

### Reproduction Steps

1. Create a request
2. Add a header
3. Fire request and notice the change in capitalization between query builder and actual request
4. Generate Client Code and see how here it has not been modified

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

_No response_

### Insomnia Version

v2023.5.5

### What operating system are you using?

macOS

### Operating System Version

macOS Ventura - 13.5

### Installation method

Brew: https://formulae.brew.sh/cask/insomnia

### Last Known Working Insomnia version

_No response_

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Reproduce the issue in the request builder and compare the sent request's header casing with the generated client code; trace the header-handling entry point from there. Done means headers are sent with their original capitalization while generated client code remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.