serenity icon indicating copy to clipboard operation
serenity copied to clipboard

HTTP implementation incompatible with some HTTP/1.0 servers (including python3 -m http.server)

Open ianh opened this issue 2 years ago • 0 comments

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.

ianh avatar May 24 '22 17:05 ianh