[GH-ISSUE #4726] [bug]: whitespace between header key and value causes problems for some APIs #1764

Open
opened 2026-03-16 21:38:54 +03:00 by kerem · 0 comments
Owner

Originally created by @filipjnc on GitHub (Feb 5, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4726

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I do an API call (e.g. GET) to an API that has authentication using a custom header, Hoppscotch (at least the web app) adds a whitespace between colon after the the header key and the header value. This results into the API not being able to parse the auth token correctly.

Steps to reproduce

  1. Create new API request
  2. Add header key "TEST_HEADER" and value "TEST_VALUE"
  3. Open the generated cURL code:
    curl --request GET \ --url https://api.example.com/ \ --header 'TEST_HEADER: TEST_VALUE'

Environment

Production

Version

Local

Originally created by @filipjnc on GitHub (Feb 5, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4726 ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current behavior When I do an API call (e.g. GET) to an API that has authentication using a custom header, Hoppscotch (at least the web app) adds a whitespace between colon after the the header key and the header value. This results into the API not being able to parse the auth token correctly. ### Steps to reproduce 1. Create new API request 2. Add header key "TEST_HEADER" and value "TEST_VALUE" 3. Open the generated cURL code: `curl --request GET \ --url https://api.example.com/ \ --header 'TEST_HEADER: TEST_VALUE'` ### Environment Production ### Version Local
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#1764
No description provided.