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
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue