]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
http: respect `Connection: close' in HTTP/1.1 requests
authorEric Wong <e@80x24.org>
Wed, 4 Jun 2025 11:34:58 +0000 (11:34 +0000)
committerEric Wong <e@80x24.org>
Thu, 5 Jun 2025 09:20:59 +0000 (09:20 +0000)
commit09fd15240967d1ef7243d3e2668d35125089d4b4
tree1c263c355ae611791950ad838d8a6a38d9a37df4
parentbdd84d4cff34bd1c2bcbae77558c922e5ea0014c
http: respect `Connection: close' in HTTP/1.1 requests

HTTP/1.1 clients may wish to explicitly terminate the connection
upon reading the response.  While clients may specify HTTP/1.0
to force a disconnect, HTTP/1.0 lacked chunked encoding which
meant streaming responses of indeterminate length could be
silently truncated at the protocol level and undetectable in
cases of uncompressed plain-text.
lib/PublicInbox/HTTP.pm
t/httpd.t