mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Rustfmt has changed its default style :/
This commit is contained in:
parent
82fc6d9f49
commit
be69f9c3e6
207 changed files with 1200 additions and 1339 deletions
|
@ -367,9 +367,10 @@ pub fn is_forbidden_header_name(name: &str) -> bool {
|
|||
|
||||
let disallowed_header_prefixes = ["sec-", "proxy-"];
|
||||
|
||||
disallowed_headers.iter().any(|header| *header == name) || disallowed_header_prefixes
|
||||
.iter()
|
||||
.any(|prefix| name.starts_with(prefix))
|
||||
disallowed_headers.iter().any(|header| *header == name) ||
|
||||
disallowed_header_prefixes
|
||||
.iter()
|
||||
.any(|prefix| name.starts_with(prefix))
|
||||
}
|
||||
|
||||
// There is some unresolved confusion over the definition of a name and a value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue