Remove https proxy test code - to use https proxy feature, you need a https proxy server.
You may have a look:  https://github.com/Exa-Networks/exaproxy