Skip to content

Commit

Permalink
Fixed health check endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Lippold authored and Ken Lippold committed Nov 22, 2024
1 parent 1711ec1 commit f84bf0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def __init__(self, get_response):
self.get_response = get_response

def __call__(self, request):
if request.path == '/health-check':
if request.path.rstrip('/') == '/health-check':
return HttpResponse('OK', status=200)

return self.get_response(request)

0 comments on commit f84bf0b

Please sign in to comment.