Skip to content

Commit 2c26eda

Browse files
committed
Ignore invalid authority
1 parent 7a5b574 commit 2c26eda

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/server.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,13 +1424,7 @@ impl proto::Peer for Peer {
14241424
// header
14251425
if let Some(authority) = pseudo.authority {
14261426
let maybe_authority = uri::Authority::from_maybe_shared(authority.clone().into_inner());
1427-
parts.authority = Some(maybe_authority.or_else(|why| {
1428-
malformed!(
1429-
"malformed headers: malformed authority ({:?}): {}",
1430-
authority,
1431-
why,
1432-
)
1433-
})?);
1427+
parts.authority = maybe_authority.ok();
14341428
}
14351429

14361430
// A :scheme is required, except CONNECT.

0 commit comments

Comments
 (0)