File tree 1 file changed +0
-20
lines changed
1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -1390,19 +1390,6 @@ impl proto::Peer for Peer {
1390
1390
// Convert the URI
1391
1391
let mut parts = uri:: Parts :: default ( ) ;
1392
1392
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
- } ) ?) ;
1404
- }
1405
-
1406
1393
// A :scheme is required, except CONNECT.
1407
1394
if let Some ( scheme) = pseudo. scheme {
1408
1395
if is_connect {
@@ -1416,13 +1403,6 @@ impl proto::Peer for Peer {
1416
1403
why,
1417
1404
)
1418
1405
} ) ?;
1419
-
1420
- // It's not possible to build an `Uri` from a scheme and path. So,
1421
- // after validating is was a valid scheme, we just have to drop it
1422
- // if there isn't an :authority.
1423
- if parts. authority . is_some ( ) {
1424
- parts. scheme = Some ( scheme) ;
1425
- }
1426
1406
} else if !is_connect {
1427
1407
malformed ! ( "malformed headers: missing scheme" ) ;
1428
1408
}
You can’t perform that action at this time.
0 commit comments