We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a5b574 commit 2c26edaCopy full SHA for 2c26eda
src/server.rs
@@ -1424,13 +1424,7 @@ impl proto::Peer for Peer {
1424
// header
1425
if let Some(authority) = pseudo.authority {
1426
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
- })?);
+ parts.authority = maybe_authority.ok();
1434
}
1435
1436
// A :scheme is required, except CONNECT.
0 commit comments