set response.code=200 as soon as we know there's a hook waiting for it
This commit is contained in:
parent
fefb9d71fb
commit
4a08c2d134
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
|
||||||
|
|
||||||
hooks = _events.on("api").on(method).on(endpoint).get_hooks()
|
hooks = _events.on("api").on(method).on(endpoint).get_hooks()
|
||||||
if hooks:
|
if hooks:
|
||||||
|
response.code = 200
|
||||||
hook = hooks[0]
|
hook = hooks[0]
|
||||||
authenticated = hook.get_kwarg("authenticated", True)
|
authenticated = hook.get_kwarg("authenticated", True)
|
||||||
key = params.get("key", None)
|
key = params.get("key", None)
|
||||||
|
|
Loading…
Reference in a new issue