Skip to content
Snippets Groups Projects
Commit c1677d4b authored by Brian Moe's avatar Brian Moe
Browse files

Typo

parent c085fff8
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ def download(request, graceid, filename=""):
response = HttpResponseNotFound("File does not exist")
elif not os.access(filepath, os.R_OK):
response = HttpResponseNotFound("File not readable")
elif os.path.isfile(filename):
elif os.path.isfile(filepath):
# get an actual file.
response = HttpResponse(open(filepath, "r"), content_type="application/octet-stream")
response['Content-Disposition'] = 'attachment; filename=%s' % os.path.basename(filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment