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
|
return returned
|
||||||
|
|
||||||
def serveFile(file, query, gph, context):
|
def serveFile(file, query, gph, context):
|
||||||
if fileCGI(file):
|
if fileCGI(file): fa = cgi(file, query, context)
|
||||||
fa = cgi(file, query, context)
|
elif fileSendable(file): fa = fileToFileArray(file)
|
||||||
elif fileSendable(file):
|
|
||||||
fa = fileToFileArray(file)
|
|
||||||
else:
|
else:
|
||||||
notFound(context)
|
notFound(context)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue