forked from expo/troggle
debugging
This commit is contained in:
parent
845e70465e
commit
328347f8af
@ -223,6 +223,7 @@ def expopage(request, path):
|
||||
filetobeopened = os.path.normpath(expowebpath / path)
|
||||
|
||||
try:
|
||||
t = type(filetobeopened)
|
||||
content = open(filetobeopened, "rb")
|
||||
content_type=getmimetype(path)
|
||||
return HttpResponse(content = content, content_type=content_type)
|
||||
|
Loading…
Reference in New Issue
Block a user