Skip to content

Commit

Permalink
Ignore invalid authority
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurlm committed Mar 18, 2021
1 parent 7a5b574 commit 2c26eda
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1424,13 +1424,7 @@ impl proto::Peer for Peer {
// header
if let Some(authority) = pseudo.authority {
let maybe_authority = uri::Authority::from_maybe_shared(authority.clone().into_inner());
parts.authority = Some(maybe_authority.or_else(|why| {
malformed!(
"malformed headers: malformed authority ({:?}): {}",
authority,
why,
)
})?);
parts.authority = maybe_authority.ok();
}

// A :scheme is required, except CONNECT.
Expand Down

0 comments on commit 2c26eda

Please sign in to comment.