Fix response hijacking with TLS enabled. Upstream-commit: 742a7d53f2961565f0baf43d6423383101be84c3 Component: engine