rename class gopherHandler to GopherHandler

This commit is contained in:
randomuser 2021-07-20 02:41:24 -05:00
parent cf6fd727a5
commit c194b01731
1 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ class GopherServerLogic:
if gph: fa = self.gopherRenderer(fa)
self.sendFileArray(fa)
class gopherHandler(socketserver.BaseRequestHandler, GopherServerLogic):
class GopherHandler(socketserver.BaseRequestHandler, GopherServerLogic):
def handle(self):
decoded = self.recieveRequest()
try:
@ -156,5 +156,5 @@ class gopherHandler(socketserver.BaseRequestHandler, GopherServerLogic):
self.serveFile(file[0], parsed[1], file[1])
if __name__ == "__main__":
with socketserver.TCPServer((host, port), gopherHandler) as server:
with socketserver.TCPServer((host, port), GopherHandler) as server:
server.serve_forever()