Skip to content

Commit d23bf68

Browse files
committed
htp: do not log anomaly for Content-Encoding: identity
Ticket: 7862
1 parent 3ff79ea commit d23bf68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

htp/htp_transaction.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,8 @@ htp_status_t htp_tx_state_response_headers(htp_tx_t *tx) {
13471347
tx->response_content_encoding = HTP_COMPRESSION_DEFLATE;
13481348
} else if (bstr_cmp_c_nocasenorzero(ce->value, "lzma") == 0) {
13491349
tx->response_content_encoding = HTP_COMPRESSION_LZMA;
1350-
} else if (bstr_cmp_c_nocasenorzero(ce->value, "inflate") == 0) {
1350+
} else if (bstr_cmp_c_nocasenorzero(ce->value, "inflate") == 0 ||
1351+
bstr_cmp_c_nocasenorzero(ce->value, "identify") == 0) {
13511352
// ignore
13521353
} else {
13531354
/* exceptional cases: enter slow path */

0 commit comments

Comments
 (0)