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 a193237 commit 86979b3Copy full SHA for 86979b3
src/server.rs
@@ -1393,14 +1393,8 @@ impl proto::Peer for Peer {
1393
// A request translated from HTTP/1 must not include the :authority
1394
// header
1395
if let Some(authority) = pseudo.authority {
1396
- let maybe_authority = uri::Authority::from_maybe_shared(authority.clone().into_inner());
1397
- parts.authority = Some(maybe_authority.or_else(|why| {
1398
- malformed!(
1399
- "malformed headers: malformed authority ({:?}): {}",
1400
- authority,
1401
- why,
1402
- )
1403
- })?);
+ parts.authority =
+ uri::Authority::from_maybe_shared(authority.clone().into_inner()).ok();
1404
}
1405
1406
// A :scheme is required, except CONNECT.
0 commit comments