remove sendFile(...) function

This commit is contained in:
randomuser 2021-07-20 02:12:56 -05:00
parent 5cb3a8c460
commit 6902236940
1 changed files with 0 additions and 4 deletions

View File

@ -90,10 +90,6 @@ def notFound(context):
def invalid(context):
context.request.sendall(b"3error: selector contains '..'!\r\n.\r\n")
def sendFile(file, context):
with open(file, "r") as fd:
sendFileArray(fd.readlines(), context)
def sendFileArray(arr, context):
[context.request.sendall(
(i.rstrip() + "\r\n").encode("utf-8")