diff --git a/judge/views/problem.py b/judge/views/problem.py index 4810869..e5e2479 100644 --- a/judge/views/problem.py +++ b/judge/views/problem.py @@ -431,11 +431,11 @@ class ProblemPdfDescriptionView(ProblemMixin, SingleObjectMixin, View): if not problem.pdf_description: raise Http404() response = HttpResponse() - if request.META.get("SERVER_SOFTWARE", "").startswith("nginx/"): - response["X-Accel-Redirect"] = problem.pdf_description.path - else: - with open(problem.pdf_description.path, "rb") as f: - response.content = f.read() + #if request.META.get("SERVER_SOFTWARE", "").startswith("nginx/"): + # response["X-Accel-Redirect"] = problem.pdf_description.path + #else: + with open(problem.pdf_description.path, "rb") as f: + response.content = f.read() response["Content-Type"] = "application/pdf" response["Content-Disposition"] = "inline; filename=%s.pdf" % (problem.code,)