[GH-ISSUE #5320] [bug]: Headers being lowercased and not sending properly. #2036

Open
opened 2026-03-16 22:55:36 +03:00 by kerem · 5 comments
Owner

Originally created by @imeidopf on GitHub (Aug 8, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5320

Originally assigned to: @soumyamakkar on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Desktop App

Browser

Edge

Operating System

Windows

Bug Description

I am passing a custom header 'X-API-Token', and the REST endpoint is receiving 'x-api-token'. This is causing the call to fail within Hoppscotch. Other API tools, like Postman and Axios, are not doing this.

Deployment Type

Hoppscotch Cloud

Version

No response

Originally created by @imeidopf on GitHub (Aug 8, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5320 Originally assigned to: @soumyamakkar on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Desktop App ### Browser Edge ### Operating System Windows ### Bug Description I am passing a custom header 'X-API-Token', and the REST endpoint is receiving 'x-api-token'. This is causing the call to fail within Hoppscotch. Other API tools, like Postman and Axios, are not doing this. ### Deployment Type Hoppscotch Cloud ### Version _No response_
Author
Owner

@soumyamakkar commented on GitHub (Aug 16, 2025):

can I be assigned this issue?

<!-- gh-comment-id:3193686400 --> @soumyamakkar commented on GitHub (Aug 16, 2025): can I be assigned this issue?
Author
Owner

@jamesgeorge007 commented on GitHub (Aug 18, 2025):

Sure, @soumyamakkar. Feel free to open a PR when you're ready. Let us know if you need any help.

<!-- gh-comment-id:3197593153 --> @jamesgeorge007 commented on GitHub (Aug 18, 2025): Sure, @soumyamakkar. Feel free to open a PR when you're ready. Let us know if you need any help.
Author
Owner

@soumyamakkar commented on GitHub (Aug 27, 2025):

I checked on Postman, and headers seem to be normalized to lower case there as well. Attaching a screenshot below for your reference

Image The header I sent in request was X-API-TOKEN ..

<!-- gh-comment-id:3228191437 --> @soumyamakkar commented on GitHub (Aug 27, 2025): I checked on Postman, and headers seem to be normalized to lower case there as well. Attaching a screenshot below for your reference <img width="959" height="458" alt="Image" src="https://github.com/user-attachments/assets/2f425910-32fd-4c39-8bec-709285baccc4" /> The header I sent in request was X-API-TOKEN ..
Author
Owner

@soumyamakkar commented on GitHub (Aug 28, 2025):

@jamesgeorge007 please look into this once and let me know

I checked on Postman, and headers seem to be normalized to lower case there as well. Attaching a screenshot below for your reference

Image The header I sent in request was X-API-TOKEN ..

<!-- gh-comment-id:3232191876 --> @soumyamakkar commented on GitHub (Aug 28, 2025): @jamesgeorge007 please look into this once and let me know > I checked on Postman, and headers seem to be normalized to lower case there as well. Attaching a screenshot below for your reference > > <img alt="Image" width="959" height="458" src="https://private-user-images.githubusercontent.com/112538603/482676115-2f425910-32fd-4c39-8bec-709285baccc4.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTYzNjQ1NDksIm5iZiI6MTc1NjM2NDI0OSwicGF0aCI6Ii8xMTI1Mzg2MDMvNDgyNjc2MTE1LTJmNDI1OTEwLTMyZmQtNGMzOS04YmVjLTcwOTI4NWJhY2NjNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgyOFQwNjU3MjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYThmNTNlMzJhNmQyZGUyNDliMDM0YzcxMTNkMTU4NWJhZDA3MWQzYzM2YTUxMjFlMTdlYmJiYjkzZTZkODk2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.X99-jx2v1JIbnGKRZZ26iITxa-yKLwKSXaBHGT1_H5k"> The header I sent in request was X-API-TOKEN ..
Author
Owner

@anwarulislam commented on GitHub (Sep 3, 2025):

Hi @imeidopf

Headers are being converted to lowercase by the underlying library (fetch/axios). This behavior is consistent across other API clients, including Postman. You may examine your server code or config, which may be preventing the request due to the restriction on the incorrect header key.

<!-- gh-comment-id:3248997060 --> @anwarulislam commented on GitHub (Sep 3, 2025): Hi @imeidopf Headers are being converted to lowercase by the underlying library (fetch/axios). This behavior is consistent across other API clients, including Postman. You may examine your server code or config, which may be preventing the request due to the restriction on the incorrect header key.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2036
No description provided.