fix it for real this time
This commit is contained in:
@@ -18,8 +18,6 @@ ALLOWED_METHODS = {"GET", "POST", "HEAD", "PUT"}
|
||||
script_directory = os.path.dirname(os.path.abspath(sys.argv[0]))
|
||||
webroot_real = os.path.realpath(script_directory + "/webroot")
|
||||
|
||||
requestType = ""
|
||||
|
||||
trying = True
|
||||
while trying:
|
||||
try:
|
||||
@@ -384,6 +382,7 @@ def handle_connection(connectionSocket, addr):
|
||||
response = ("HTTP/1.1 " + responseType + "\n").encode()
|
||||
response += responseHeaders
|
||||
response += b"\n"
|
||||
if requestType is None: requestType = "unknown"
|
||||
if (requestType != "HEAD"):
|
||||
response += responsecontent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user