Pass headers through REST API callbacks

This commit is contained in:
jesopo 2018-11-06 13:02:04 +00:00
parent 2921ed77ae
commit bbec7f311d

View file

@ -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