Fix bug in middleware

This commit is contained in:
Dustin Pianalto 2019-12-25 22:02:03 -09:00
parent ce91071993
commit 42ce4f8953

View File

@ -4,5 +4,5 @@ from django.utils.deprecation import MiddlewareMixin
class AWSELBHealthCheckMiddleware(MiddlewareMixin):
def process_request(self, request):
if request.META("PATH_INFO") == '/hostcheck/':
if request.META["PATH_INFO"] == '/hostcheck/':
return HttpResponse("It's Alive!")