Catch eof and treat it as Connection:close

If the server doesn't respond with TE or Content-Length end the response when
the socket closes.