Skip to content

Commit

Permalink
Fix compile error: borrow of moved value: header
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Dec 12, 2023
1 parent d3cfb9e commit f1b5a09
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 f1b5a09

Please sign in to comment.