[GH-ISSUE #1257] Headers not replaced with Variables in the code export view #422

Closed
opened 2026-03-16 15:15:39 +03:00 by kerem · 2 comments
Owner

Originally created by @exussum12 on GitHub (Oct 9, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1257

Describe the bug
Headers not replaced with Variables

To Reproduce
add <<variable>> as the value of a header, with <<variable>> set to something, press the export code button

Expected behavior
value should be something instead of <<variable>>

Originally created by @exussum12 on GitHub (Oct 9, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1257 **Describe the bug** Headers not replaced with Variables **To Reproduce** add `<<variable>>` as the value of a header, with `<<variable>>` set to something, press the export code button **Expected behavior** value should be something instead of `<<variable>>`
kerem 2026-03-16 15:15:39 +03:00
Author
Owner

@liyasthomas commented on GitHub (Oct 9, 2020):

As of now, env variables aren't supported in headers section. Will add to roadmap.

<!-- gh-comment-id:706216484 --> @liyasthomas commented on GitHub (Oct 9, 2020): As of now, env variables aren't supported in headers section. Will add to roadmap.
Author
Owner

@exussum12 commented on GitHub (Oct 12, 2020):

@liyasthomas I went to implement this, it actually works as intended. The reason I thought it didn't is the generated code. That doesn't get replaced. Ill update the issue and send a PR to make the code work the same way.

Example URL to confirm
https://postman-echo.com/get

<!-- gh-comment-id:706903207 --> @exussum12 commented on GitHub (Oct 12, 2020): @liyasthomas I went to implement this, it actually works as intended. The reason I thought it didn't is the generated code. That doesn't get replaced. Ill update the issue and send a PR to make the code work the same way. Example URL to confirm https://postman-echo.com/get
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#422
No description provided.