From 94f3007e17acffda2d350077f08f582522e4af5c Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Tue, 9 Mar 2021 09:47:07 -0600 Subject: its borked --- csci4131/hw4/strap012/strap012.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'csci4131') diff --git a/csci4131/hw4/strap012/strap012.py b/csci4131/hw4/strap012/strap012.py index 43b7efb..cdfbe68 100644 --- a/csci4131/hw4/strap012/strap012.py +++ b/csci4131/hw4/strap012/strap012.py @@ -23,7 +23,8 @@ def check_perms(resource): def POST(form): contents = form.decode(utf-8) print(contents) - return + ret = "TestE" + return ret def getContents(type, file): returnValue = "".encode() @@ -49,10 +50,6 @@ def getContents(type, file): elif type == "GET": returnValue = b"".join( [returnValue, content.read(), "{}{}".format(CRLF, CRLF).encode()]) - elif type == "POST": - POST(content.read()) - #returnValue = b"".join( - # [returnValue, POST(content.read(), "{}{}".format(CRLF, CRLF).encode())]) else: returnValue= METHOD_NOT_ALLOWED.encode() content.close() -- cgit v1.2.3