Skip to content

Commit

Permalink
refactor(proto): resolve internal mutability in const variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and seanmonstar committed Dec 27, 2023
1 parent 3503e93 commit 9b5f409
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 @@ -35,7 +35,7 @@ pub(crate) const SPEC_WINDOW_SIZE: u32 = 65_535;
//
// TE headers are allowed in HTTP/2 requests as long as the value is "trailers", so they're
// tested separately.
const CONNECTION_HEADERS: [HeaderName; 5] = [
static CONNECTION_HEADERS: [HeaderName; 5] = [
HeaderName::from_static("keep-alive"),
HeaderName::from_static("proxy-connection"),
TRAILER,
Expand Down

0 comments on commit 9b5f409

Please sign in to comment.