diff options
| author | 2018-11-06 13:02:04 +0000 | |
|---|---|---|
| committer | 2018-11-06 13:02:04 +0000 | |
| commit | bbec7f311da67be8ce1f1f9dc7563ffd5535fb75 (patch) | |
| tree | 4c698fbdfa8a102121f53c644bcff050d212fffe | |
| parent | Support arrays of user/channel/bot/server settings (diff) | |
| signature | ||
Pass headers through REST API callbacks
| -rw-r--r-- | modules/rest_api.py | 4 |
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 |
