Fix handling of HTTP/S keep-alives (RIPD-556)

Need this to be closely examined