This commit is contained in:
Martin Green 2022-06-18 23:24:21 +01:00
parent 6bcf70bb8b
commit 845e70465e

View File

@ -223,7 +223,7 @@ def expopage(request, path):
filetobeopened = os.path.normpath(expowebpath / path) filetobeopened = os.path.normpath(expowebpath / path)
try: try:
content = open(filetobeopened, "rb" content = open(filetobeopened, "rb")
content_type=getmimetype(path) content_type=getmimetype(path)
return HttpResponse(content = content, content_type=content_type) return HttpResponse(content = content, content_type=content_type)
except IOError: except IOError: