aboutsummaryrefslogtreecommitdiff
path: root/modules/rest_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/rest_api.py')
-rw-r--r--modules/rest_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py
index b8b3077a..1635e8b7 100644
--- a/modules/rest_api.py
+++ b/modules/rest_api.py
@@ -30,8 +30,8 @@ class Handler(http.server.BaseHTTPRequestHandler):
event_response = None
try:
event_response = _events.on("api").on(method).on(
- endpoint).call_unsafe_for_result(
- params=params, path=args, data=data)
+ endpoint).call_unsafe_for_result(params=params,
+ path=args, data=data, headers=dict(self.headers))
except:
code = 500