-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
RequestBuilder::header unsets sensitive
on header value
#2352
Comments
It does? Perhaps I'm not seeing it. Which line specifically does it unset it? |
Ah sorry I read the code for The issue still lies here: reqwest/src/blocking/request.rs Lines 191 to 215 in 892569e
It seems that the issue was already reported in #1549 and fixed for I'll open a PR. |
RequestBuilder::header
:reqwest/src/async_impl/request.rs
Lines 189 to 218 in 892569e
allows passing
HeaderValue
, however it overwritessensitive
to false, making it impossible to flag a header assensitive
right away unless going through the.basic_auth
or.bearer_auth
functions.It looks like a bug: when simply going through
.header
, it looks like it should not overwrite the value ofsensitive
for the generatedHeaderValue
.The text was updated successfully, but these errors were encountered: