File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
aikido_zen/sources/functions Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4
4
from .request_handler import request_handler
5
5
from ...background_process .service_config import ServiceConfig
6
6
from ...context import Context , current_context
7
+ from ...helpers .headers import Headers
7
8
8
9
9
10
@pytest .fixture
@@ -107,13 +108,15 @@ def test_post_response_no_context(mock_get_comms):
107
108
108
109
# Test firewall lists
109
110
def set_context (remote_address , user_agent = "" ):
111
+ headers = Headers ()
112
+ headers .store_header ("USER_AGENT" , user_agent )
110
113
Context (
111
114
context_obj = {
112
115
"remote_address" : remote_address ,
113
116
"method" : "POST" ,
114
117
"url" : "http://localhost:4000" ,
115
118
"query" : {"abc" : "def" },
116
- "headers" : { "USER_AGENT" : user_agent } ,
119
+ "headers" : headers ,
117
120
"body" : None ,
118
121
"cookies" : {},
119
122
"source" : "flask" ,
You can’t perform that action at this time.
0 commit comments