simplify serveFile some more

This commit is contained in:
randomuser 2021-07-20 02:14:27 -05:00
parent 393e06bb6c
commit a2ac3369e4
1 changed files with 2 additions and 4 deletions

View File

@ -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