HEAD now actually works to spec rather than just being a different GET

This commit is contained in:
Logan Joy-Koer
2026-08-24 06:19:45 -07:00
parent 853004d433
commit 05fe7c36f9
+1
View File
@@ -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