Use https in links when coming from HTTPS, even under proxy