Proxy urls do not respect https://

I have added a simple $_SERVER['https'] check to the proxy prefix to make sure that subsequent requests are also delivered via SSL with the https prefix. Although the port is set, my Chromium refuses to load site resources via http://example.com:443 but allows them over https://example.com:443.