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] set_sensitive does not seem to work with RequestBuilder #1549

Closed
karencfv opened this issue May 31, 2022 · 2 comments · Fixed by #1550
Closed

[BUG] set_sensitive does not seem to work with RequestBuilder #1549

karencfv opened this issue May 31, 2022 · 2 comments · Fixed by #1550

Comments

@karencfv
Copy link

Hi there!

I'm wanting to set a header value as sensitive, so that when I call log::debug! what is printed out is "authorization": Sensitive.

set_sensitive works perfectly if I set the value directly on the ClientBuilder, but if I set it through the RequestBuilder the value is not obscured.

I have created a couple of examples in the Rust playground to show the difference in output https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=2fdafa47dcef259f0768a2319d553b1f

Any help with this issue would be really appreciated!

@seanmonstar
Copy link
Owner

Thanks for the report, I found the problem, a fix is in #1550.

@karencfv
Copy link
Author

Thanks for getting this fixed so quickly @seanmonstar !! 🙇‍♀️

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

Successfully merging a pull request may close this issue.

2 participants