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> {
94
94
}
95
95
96
96
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 ) ;
98
99
debug_assert ! (
99
100
value. as_bytes( ) . starts_with( C :: SCHEME . as_bytes( ) ) ,
100
101
"Credentials::encode should include its scheme: scheme = {:?}, encoded = {:?}" ,
@@ -171,7 +172,8 @@ impl Credentials for Basic {
171
172
base64:: encode_config_buf ( & self . decoded , base64:: STANDARD , & mut encoded) ;
172
173
173
174
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" )
175
177
}
176
178
}
177
179
You can’t perform that action at this time.
0 commit comments