Fixes req w/ both Content-Length & Connection: close headers.
Fixes req w/ both Content-Length & Connection: close headers.

Also closes the socket when connection is closed to ensure
that a new connection is made on any further requests.

dom96/Nim,russpowers/Nim,russpowers/Nim,russpowers/Nim,dom96/Nim,dom96/Nim,russpowers/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,russpowers/Nim,russpowers/Nim,russpowers/Nim