RFC 9112 6.1 has a server close the connection after answering a request with both Transfer-Encoding and Content-Length, or with Transfer-Encoding in HTTP/1.0. Close it, and send Connection: close whenever the connection closes after a response.