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

[BUG] Cannot paste value with trailing newline in Header values anymore #2681

Open
1 task done
mprisehk opened this issue Oct 16, 2024 · 0 comments
Open
1 task done

Comments

@mprisehk
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

In newer versions of Altair, I cannot paste values with a trailing newline into the value field of the Headers popup anymore. When pressing Ctrl+V, nothing happens, no value is pasted.

Expected Behavior

I would expect that the value gets pasted. This worked before, in version 6.3.0 for example. Probably the newline should be trimmed off as I suppose it's an illegal character for HTML headers. But the pasting should simply work.

Btw: this is relevant because our team uses the Headers on all requests to add the Authorization header. The value, a bearer token, we copy from the Chrome Network tab. This simple "triple click the token, press Ctrl+C" action apparently includes a trailing newline. Screenshot:
image
Having the newline in the clipboard value didn't matter before (personally I still use 6.3.0), but it prevents pasting in newer versions.

Steps To Reproduce

  1. Ctrl+C a value with a trailing newline (e.g.: a Bearer token copied from a request in the Chrome Network tab)
  2. Open the Headers popup in Altair 7.3.6
  3. Give the header a name (e.g. Authorization)
  4. Try to paste the value into the header value field.

Environment

- OS: Windows 11
- Platform: Windows application
- Version: 7.3.6

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant