Support HTTPS via CONNECT in proxy extension

This allows to connect to HTTPS hosts via the proxy.