improved support for broken responses to CONNECT requests