Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables not getting rendered in "Copy as CURL" #6458

Closed
1 task done
kiwitrav opened this issue Sep 7, 2023 · 2 comments
Closed
1 task done

Environment variables not getting rendered in "Copy as CURL" #6458

kiwitrav opened this issue Sep 7, 2023 · 2 comments
Labels
B-bug Bug: general classification S-verified Status: Verified by maintainer

Comments

@kiwitrav
Copy link

kiwitrav commented Sep 7, 2023

Expected Behavior

Copy as cURL on request includes the current value rendered from the environment; eg if I had:

  • an environment variable contentType currently set to "application/json"
  • a header "ContentType" set to the contentType environment variable

when I choose to copy cURL I would expect it to include header "ContentType" with value "application/json"

Actual Behavior

Copy as cURL on request includes the current value rendered from the environment; eg if I had:

  • an environment variable contentType currently set to "application/json"
  • a header "ContentType" set to the contentType environment variable

when I choose to copy cURL I get a header entry of "ContentType" but no value in the header

Reproduction Steps

Create an environment variable with a value
Create a call with a Header set to that environment variable

Copy the cURL - value of environment variable is not included

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2023.5.7

What operating system are you using?

Windows

Operating System Version

Windows 10 Pro

Installation method

Download from insomnia

Last Known Working Insomnia version

Unsure.

@kiwitrav kiwitrav added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Sep 7, 2023
@filfreire filfreire added S-verified Status: Verified by maintainer and removed S-unverified Status: Unverified by maintainer labels Sep 7, 2023
@filfreire filfreire changed the title Copy cURL not copying values of placeholders in headers Environment variables not getting rendered in "Copy as CURL" Sep 7, 2023
@filfreire
Copy link
Member

@kiwitrav thanks for reporting this, we can reproduce as well.

@jackkav
Copy link
Contributor

jackkav commented Sep 7, 2023

Fixed in #6462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-verified Status: Verified by maintainer
Projects
None yet
Development

No branches or pull requests

3 participants