Skip to content

Commit 68e4403

Browse files
authored
Consistently indicate malformed in logs (#658)
1 parent 07d20b1 commit 68e4403

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ impl proto::Peer for Peer {
14781478
// A :scheme is required, except CONNECT.
14791479
if let Some(scheme) = pseudo.scheme {
14801480
if is_connect && !has_protocol {
1481-
malformed!(":scheme in CONNECT");
1481+
malformed!("malformed headers: :scheme in CONNECT");
14821482
}
14831483
let maybe_scheme = scheme.parse();
14841484
let scheme = maybe_scheme.or_else(|why| {
@@ -1501,7 +1501,7 @@ impl proto::Peer for Peer {
15011501

15021502
if let Some(path) = pseudo.path {
15031503
if is_connect && !has_protocol {
1504-
malformed!(":path in CONNECT");
1504+
malformed!("malformed headers: :path in CONNECT");
15051505
}
15061506

15071507
// This cannot be empty

0 commit comments

Comments
 (0)