File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,9 @@ def parse_event_source(event: dict) -> _EventSource:
115
115
event_source = None
116
116
117
117
# Get requestContext safely and ensure it's a dictionary
118
- request_context = event .get ("requestContext" , {} )
118
+ request_context = event .get ("requestContext" )
119
119
if not isinstance (request_context , dict ):
120
- request_context = {}
120
+ request_context = None
121
121
122
122
if request_context and request_context .get ("stage" ):
123
123
if "domainName" in request_context and detect_lambda_function_url_domain (
@@ -291,9 +291,9 @@ def extract_http_tags(event):
291
291
http_tags = {}
292
292
293
293
# Safely get request_context and ensure it's a dictionary
294
- request_context = event .get ("requestContext" , {} )
294
+ request_context = event .get ("requestContext" )
295
295
if not isinstance (request_context , dict ):
296
- request_context = {}
296
+ request_context = None
297
297
298
298
path = event .get ("path" )
299
299
method = event .get ("httpMethod" )
You can’t perform that action at this time.
0 commit comments