Skip to content

Commit 81011ad

Browse files
committed
revert to strict == 0 checks on non-deny path
1 parent d1332ad commit 81011ad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/python/simple_get.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ def test_request_body_from_file():
198198
finally:
199199
os.unlink(body_file)
200200

201-
_check(_c.coraza_process_request_body(tx) >= 0, "coraza_process_request_body failed")
202-
_check(_c.coraza_process_response_headers(tx, 200, "HTTP/1.1") >= 0, "coraza_process_response_headers failed")
203-
_check(_c.coraza_process_response_body(tx) >= 0, "coraza_process_response_body failed")
201+
_check(_c.coraza_process_request_body(tx) == 0, "coraza_process_request_body failed")
202+
_check(_c.coraza_process_response_headers(tx, 200, "HTTP/1.1") == 0, "coraza_process_response_headers failed")
203+
_check(_c.coraza_process_response_body(tx) == 0, "coraza_process_response_body failed")
204204
_check(_c.coraza_process_logging(tx) == 0, "coraza_process_logging failed")
205205
_check(_c.coraza_free_transaction(tx) == 0, "coraza_free_transaction failed")
206206
_check(_c.coraza_free_waf(waf) == 0, "coraza_free_waf failed")

0 commit comments

Comments
 (0)