File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ impl<C: Credentials> ::Header for Authorization<C> {
9494 }
9595
9696 fn encode < E : Extend < :: HeaderValue > > ( & self , values : & mut E ) {
97- let value = self . 0 . encode ( ) ;
97+ let mut value = self . 0 . encode ( ) ;
98+ value. set_sensitive ( true ) ;
9899 debug_assert ! (
99100 value. as_bytes( ) . starts_with( C :: SCHEME . as_bytes( ) ) ,
100101 "Credentials::encode should include its scheme: scheme = {:?}, encoded = {:?}" ,
@@ -171,7 +172,8 @@ impl Credentials for Basic {
171172 base64:: encode_config_buf ( & self . decoded , base64:: STANDARD , & mut encoded) ;
172173
173174 let bytes = Bytes :: from ( encoded) ;
174- HeaderValue :: from_maybe_shared ( bytes) . expect ( "base64 encoding is always a valid HeaderValue" )
175+ HeaderValue :: from_maybe_shared ( bytes)
176+ . expect ( "base64 encoding is always a valid HeaderValue" )
175177 }
176178}
177179
You can’t perform that action at this time.
0 commit comments