mirror of https://github.com/fafhrd91/actix-web
hide authorization header in HttpRequest Debug
This commit is contained in:
parent
06c3513bc0
commit
4b49c68199
|
@ -445,7 +445,9 @@ impl fmt::Debug for HttpRequest {
|
||||||
}
|
}
|
||||||
writeln!(f, " headers:")?;
|
writeln!(f, " headers:")?;
|
||||||
for (key, val) in self.headers().iter() {
|
for (key, val) in self.headers().iter() {
|
||||||
writeln!(f, " {:?}: {:?}", key, val)?;
|
if key != http::header::AUTHORIZATION {
|
||||||
|
writeln!(f, " {:?}: {:?}", key, val)?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue