MDL-24332 fixed https handling when using sslproxy - thanks djeeg