We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
header
1 parent e303f5a commit 4df896aCopy full SHA for 4df896a
src/proto/h2/mod.rs
@@ -44,7 +44,7 @@ const CONNECTION_HEADERS: [HeaderName; 5] = [
44
];
45
46
fn strip_connection_headers(headers: &mut HeaderMap, is_request: bool) {
47
- for header in CONNECTION_HEADERS {
+ for header in &CONNECTION_HEADERS {
48
if headers.remove(header).is_some() {
49
warn!("Connection header illegal in HTTP/2: {}", header.as_str());
50
}
0 commit comments