Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistently indicate malformed in logs #658

Merged
merged 1 commit into from Jan 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/server.rs
Expand Up @@ -1478,7 +1478,7 @@ impl proto::Peer for Peer {
// A :scheme is required, except CONNECT.
if let Some(scheme) = pseudo.scheme {
if is_connect && !has_protocol {
malformed!(":scheme in CONNECT");
malformed!("malformed headers: :scheme in CONNECT");
}
let maybe_scheme = scheme.parse();
let scheme = maybe_scheme.or_else(|why| {
Expand All @@ -1501,7 +1501,7 @@ impl proto::Peer for Peer {

if let Some(path) = pseudo.path {
if is_connect && !has_protocol {
malformed!(":path in CONNECT");
malformed!("malformed headers: :path in CONNECT");
}

// This cannot be empty
Expand Down