Skip to content

Commit 7ab959a

Browse files
committed
http2: rename event variant to match rule
Rename InvalidHTTP1Settings to InvalidHttp1Settings so it gets the expected name transformation of "invalid_http1_settings". Ticket: OISF#7361
1 parent ee52037 commit 7ab959a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rust/src/http2/detect.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ fn http2_tx_set_settings(state: &mut HTTP2State, input: &[u8]) {
961961
match STANDARD.decode(input) {
962962
Ok(dec) => {
963963
if dec.len() % 6 != 0 {
964-
state.set_event(HTTP2Event::InvalidHTTP1Settings);
964+
state.set_event(HTTP2Event::InvalidHttp1Settings);
965965
}
966966

967967
let head = parser::HTTP2FrameHeader {
@@ -982,12 +982,12 @@ fn http2_tx_set_settings(state: &mut HTTP2State, input: &[u8]) {
982982
});
983983
}
984984
Err(_) => {
985-
state.set_event(HTTP2Event::InvalidHTTP1Settings);
985+
state.set_event(HTTP2Event::InvalidHttp1Settings);
986986
}
987987
}
988988
}
989989
Err(_) => {
990-
state.set_event(HTTP2Event::InvalidHTTP1Settings);
990+
state.set_event(HTTP2Event::InvalidHttp1Settings);
991991
}
992992
}
993993
}

rust/src/http2/http2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ pub enum HTTP2Event {
498498
ExtraHeaderData,
499499
LongFrameData,
500500
StreamIdReuse,
501-
InvalidHTTP1Settings,
501+
InvalidHttp1Settings,
502502
FailedDecompression,
503503
InvalidRange,
504504
HeaderIntegerOverflow,

0 commit comments

Comments
 (0)