simplify serveFile some more
This commit is contained in:
parent
393e06bb6c
commit
a2ac3369e4
6
esgd.py
6
esgd.py
|
@ -131,10 +131,8 @@ def gopherRenderer(fileArray):
|
|||
return returned
|
||||
|
||||
def serveFile(file, query, gph, context):
|
||||
if fileCGI(file):
|
||||
fa = cgi(file, query, context)
|
||||
elif fileSendable(file):
|
||||
fa = fileToFileArray(file)
|
||||
if fileCGI(file): fa = cgi(file, query, context)
|
||||
elif fileSendable(file): fa = fileToFileArray(file)
|
||||
else:
|
||||
notFound(context)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue