From 3187248fb9868fd8b37df3ed503614207ee0e022 Mon Sep 17 00:00:00 2001 From: brb Date: Thu, 6 Jul 2023 13:22:32 +0200 Subject: [PATCH] [skip ci] fixed bug when accessing /test --- code/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/app.py b/code/app.py index a5b0b53..1b3cd86 100644 --- a/code/app.py +++ b/code/app.py @@ -31,7 +31,7 @@ async def root(): async def test(request: Request): """ Test connection to server. """ logging.debug('Content-Type: ', request.headers.get('content-type')) - HTTPException( + raise HTTPException( status_code=200, detail='test completed' )