diff --git a/esgd.py b/esgd.py index 058a5d8..2b3284d 100644 --- a/esgd.py +++ b/esgd.py @@ -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")