mirror of https://github.com/fafhrd91/actix-web
chore: add comments
This commit is contained in:
parent
4b49c68199
commit
c14c03f073
|
@ -10,6 +10,7 @@
|
|||
|
||||
### Fixed
|
||||
- Add `Allow` header to `Resource`'s default responses when no routes are matched. [#2949]
|
||||
- Hide `Authorization` header in `HttpRequest` Debug output
|
||||
|
||||
[#1961]: https://github.com/actix/actix-web/pull/1961
|
||||
[#2265]: https://github.com/actix/actix-web/pull/2265
|
||||
|
|
|
@ -445,6 +445,7 @@ impl fmt::Debug for HttpRequest {
|
|||
}
|
||||
writeln!(f, " headers:")?;
|
||||
for (key, val) in self.headers().iter() {
|
||||
// Hide sensitive header from debug output
|
||||
if key != http::header::AUTHORIZATION {
|
||||
writeln!(f, " {:?}: {:?}", key, val)?;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue