Skip to content

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

Closed
@kiwitrav

Description

@kiwitrav

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-bugBug: general classificationS-verifiedStatus: Verified by maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions