Skip to content

Commit

Permalink
Merge pull request #314 from erdos4d/patch-1
Browse files Browse the repository at this point in the history
Fix Issue #311
  • Loading branch information
KristianOellegaard authored Dec 9, 2021
2 parents f5978d4 + ab738ba commit 9e9d5ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion health_check/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import re

from django.http import HttpResponse, JsonResponse
from django.utils.decorators import method_decorator
from django.views.decorators.cache import never_cache
from django.views.generic import TemplateView

Expand Down Expand Up @@ -80,7 +81,7 @@ def __lt__(self, other):
class MainView(CheckMixin, TemplateView):
template_name = 'health_check/index.html'

@never_cache
@method_decorator(never_cache)
def get(self, request, *args, **kwargs):
status_code = 500 if self.errors else 200

Expand Down

0 comments on commit 9e9d5ec

Please sign in to comment.