Simplify and correctly set ConnectionClose in http