Skip to content

Commit

Permalink
added curl head handling
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>

lint
  • Loading branch information
tsebastiani committed May 8, 2024
1 parent 421f942 commit 8a420ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ def request_handler(params: str = None):
path = (
request.path if not params else request.path.replace(f"/{params}", "")
)
steps = method_steps[(request.method, path)]
if (request.method, path) in method_steps:
steps = method_steps[(request.method, path)]
else:
return Response(f"{request.method} on {path} not allowed", status=405)

for request_step in steps:
if validate_step(request_step):
Expand Down

0 comments on commit 8a420ed

Please sign in to comment.