File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ tests/:
560560 django-poc : v1.10
561561 fastapi : v2.4.0
562562 flask-poc : v1.10
563- Test_Blocking_client_ip_with_forwarded : v3.13.0.dev
563+ Test_Blocking_client_ip_with_forwarded : missing_feature
564564 Test_Blocking_request_body :
565565 ' * ' : v1.16.1
566566 django-poc : v3.7.0.dev (is v1.10 but weblog use new SDK now)
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ class Test_Blocking_client_ip_with_forwarded:
7474 """Test if blocking is supported on http.client_ip address"""
7575
7676 def setup_blocking (self ):
77- self .rm_req_block = weblog .get (headers = {"Forwarded" : "host=\" example.host\" ;by=2.2.2.2;proto=http;for=1.1.1.1:6543" })
77+ self .rm_req_block = weblog .get (
78+ headers = {"Forwarded" : 'host="example.host";by=2.2.2.2;proto=http;for=1.1.1.1:6543' }
79+ )
7880
7981 def test_blocking (self ):
8082 """Can block the request forwarded for the ip"""
@@ -83,7 +85,10 @@ def test_blocking(self):
8385 interfaces .library .assert_waf_attack (self .rm_req_block , rule = "blk-001-001" )
8486
8587 def setup_blocking_before (self ):
86- self .block_req2 = weblog .get ("/tag_value/tainted_value_6512/200" , headers = {"Forwarded" : "host=\" example.host\" ;by=2.2.2.2;proto=https;for=1.1.1.1" })
88+ self .block_req2 = weblog .get (
89+ "/tag_value/tainted_value_6512/200" ,
90+ headers = {"Forwarded" : 'host="example.host";by=2.2.2.2;proto=https;for=1.1.1.1' },
91+ )
8792
8893 def test_blocking_before (self ):
8994 """Test that blocked requests are blocked before being processed"""
You can’t perform that action at this time.
0 commit comments