Skip to content

Commit

Permalink
htp: do not log content-encoding: none
Browse files Browse the repository at this point in the history
Ticket: #5757
  • Loading branch information
catenacyber authored and victorjulien committed Mar 30, 2023
1 parent 11a64ee commit 8c43ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htp/htp_transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ htp_status_t htp_tx_state_response_headers(htp_tx_t *tx) {
"Compression bomb: multiple encoding with lzma");
break;
}
} else if (bstr_util_cmp_mem(tok, tok_len, "inflate", 7) == 0) {
} else if (bstr_util_cmp_mem(tok, tok_len, "inflate", 7) == 0 || bstr_util_cmp_mem(tok, tok_len, "none", 4) == 0) {
cetype = HTP_COMPRESSION_NONE;
} else {
// continue
Expand Down

0 comments on commit 8c43ca1

Please sign in to comment.