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

Extra space formatting issue in 'Response => Body Attribute' #6020

Open
1 task done
lennertvandevelde opened this issue Jun 8, 2023 · 1 comment · May be fixed by #7279
Open
1 task done

Extra space formatting issue in 'Response => Body Attribute' #6020

lennertvandevelde opened this issue Jun 8, 2023 · 1 comment · May be fixed by #7279
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@lennertvandevelde
Copy link

Expected Behavior

Chaining requests in order to get a bearer token from an ROPC-request. It should be able to return the token and fill it into Authorization: Bearer.

Actual Behavior

The token generation and passing works, but the formatting in the headers seems to be wrong.

image

Returns this header
image
which yields a 401.

image

here you can see an extra space is added.

When filling in the same token statically, the call will work.

Reproduction Steps

  1. Go to the Barer tab on any call.
  2. Fill in a Response => Body Attribute as Token.
  3. Send request
  4. Watch in Timeline and see an extra space is added after Authorization: Bearer

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2023.2.2

What operating system are you using?

Windows

Operating System Version

Windows 11 Pro 22H2

Installation method

download from insomnia.rest

Last Known Working Insomnia version

No response

@lennertvandevelde lennertvandevelde added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Jun 8, 2023
SimplexShotz added a commit to SimplexShotz/insomnia that referenced this issue Apr 11, 2024
@SimplexShotz
Copy link

SimplexShotz commented Apr 11, 2024

Based on your first photo, it looks like there's a space in the Token input before the Response => Body Attribute tag.

The current behavior that you're showing here may be intentional; however, I can't think of a case where having a leading/trailing space would be useful.

I'll submit a pull request for review; if this behavior is intentional, please feel free to provide further feedback.

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-unverified Status: Unverified by maintainer
Projects
None yet
2 participants