Skip to content

Commit 9b5f409

Browse files
tottotoseanmonstar
authored andcommitted
refactor(proto): resolve internal mutability in const variable
1 parent 3503e93 commit 9b5f409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proto/h2/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub(crate) const SPEC_WINDOW_SIZE: u32 = 65_535;
3535
//
3636
// TE headers are allowed in HTTP/2 requests as long as the value is "trailers", so they're
3737
// tested separately.
38-
const CONNECTION_HEADERS: [HeaderName; 5] = [
38+
static CONNECTION_HEADERS: [HeaderName; 5] = [
3939
HeaderName::from_static("keep-alive"),
4040
HeaderName::from_static("proxy-connection"),
4141
TRAILER,

0 commit comments

Comments
 (0)