serenity
serenity copied to clipboard
HTTP implementation incompatible with some HTTP/1.0 servers (including python3 -m http.server)
LibHTTP seems to assume it can keep a persistent connection open and continue sending requests on it, but HTTP 1.0 servers may close the connection after sending a response. According to the spec, a client should retry a request if the server closes the connection early (https://datatracker.ietf.org/doc/html/rfc2616#section-8.2.4). I ran into this problem when trying to view a page with multiple subresources being served by python3 -m http.server
.