Skip to content

Commit

Permalink
refactor(http1): fix borrow of moved value: header when tracing ena…
Browse files Browse the repository at this point in the history
…bled (hyperium#3478)

Signed-off-by: Sven Pfennig <s.pfennig@reply.de>
  • Loading branch information
chrislearn authored and 0xE282B0 committed Jan 16, 2024
1 parent 2f99911 commit 4062d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/h2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const CONNECTION_HEADERS: [HeaderName; 5] = [
];

fn strip_connection_headers(headers: &mut HeaderMap, is_request: bool) {
for header in CONNECTION_HEADERS {
for header in &CONNECTION_HEADERS {
if headers.remove(header).is_some() {
warn!("Connection header illegal in HTTP/2: {}", header.as_str());
}
Expand Down

0 comments on commit 4062d64

Please sign in to comment.