aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-06 13:02:04 +0000
committerGravatar jesopo2018-11-06 13:02:04 +0000
commitbbec7f311da67be8ce1f1f9dc7563ffd5535fb75 (patch)
tree4c698fbdfa8a102121f53c644bcff050d212fffe /modules
parentSupport arrays of user/channel/bot/server settings (diff)
signature
Pass headers through REST API callbacks
Diffstat (limited to 'modules')
-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