Pass headers through REST API callbacks
This commit is contained in:
parent
2921ed77ae
commit
bbec7f311d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue