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 event_response = None
try: try:
event_response = _events.on("api").on(method).on( event_response = _events.on("api").on(method).on(
endpoint).call_unsafe_for_result( endpoint).call_unsafe_for_result(params=params,
params=params, path=args, data=data) path=args, data=data, headers=dict(self.headers))
except: except:
code = 500 code = 500