Cast request headers to dict before adding them to the event

This commit is contained in:
Fabio Manganiello 2021-01-31 00:16:44 +01:00
parent fddf2006e4
commit ef63c3769e

View file

@ -26,7 +26,7 @@ def _hook(hook_name):
'method': request.method,
'args': dict(request.args or {}),
'data': request.data.decode(),
'headers': request.headers,
'headers': dict(request.headers or {}),
}
if event_args['data']: