HEAD now actually works to spec rather than just being a different GET
This commit is contained in:
@@ -382,6 +382,7 @@ def handle_connection(connectionSocket, addr):
|
||||
response = ("HTTP/1.1 " + responseType + "\n").encode()
|
||||
response += responseHeaders
|
||||
response += b"\n"
|
||||
if (requestType != "HEAD"):
|
||||
response += responsecontent
|
||||
|
||||
numchunks = math.ceil(len(response) / 1024) if len(response) > 0 else 1
|
||||
|
||||
Reference in New Issue
Block a user