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

Support some way to specify an header that shouldn't be persisted to the session #975

Open
segevfiner opened this issue Oct 19, 2020 · 0 comments
Labels
enhancement New feature or enhancement

Comments

@segevfiner
Copy link

Although not the most common, some services sometimes have HTTP headers that should be sent only for some specific requests, but not all of them, and as such shouldn't be persisted in the session. httpie currently persists all headers except for the ones starting with Content- or If-. That means such headers will also be persisted to the session, unless you take care to use --session-read-only for such requests.

It would be convenient if there was a syntax to indicate headers that shouldn't be persisted to the session and/or a configuration setting to indicate additional headers that shouldn't be persisted to the session.

@jkbrzt jkbrzt added the enhancement New feature or enhancement label Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants