Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rust/src/http2/decompression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ impl HTTP2DecoderHalf {
pub fn http2_encoding_fromvec(&mut self, input: &[u8]) {
//use first encoding...
if self.encoding == HTTP2ContentEncoding::Unknown {
if input == b"gzip" {
if input.eq_ignore_ascii_case(b"gzip") {
self.encoding = HTTP2ContentEncoding::Gzip;
self.decoder =
HTTP2Decompresser::Gzip(Box::new(GzDecoder::new(HTTP2cursor::new())));
} else if input == b"deflate" {
} else if input.eq_ignore_ascii_case(b"deflate") {
self.encoding = HTTP2ContentEncoding::Deflate;
self.decoder =
HTTP2Decompresser::Deflate(Box::new(DeflateDecoder::new(HTTP2cursor::new())));
} else if input == b"br" {
} else if input.eq_ignore_ascii_case(b"br") {
self.encoding = HTTP2ContentEncoding::Br;
self.decoder = HTTP2Decompresser::Brotli(Box::new(brotli::Decompressor::new(
HTTP2cursor::new(),
Expand Down
1 change: 1 addition & 0 deletions src/app-layer-expectation.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ static ExpectationList *AppLayerExpectationRemove(IPPair *ipp,
{
CIRCLEQ_REMOVE(&exp_list->list, exp, entries);
AppLayerFreeExpectation(exp);
IPPairDecrUsecnt(ipp);
SC_ATOMIC_SUB(expectation_count, 1);
exp_list->length--;
if (exp_list->length == 0) {
Expand Down
Loading