jenkinsci/jenkins — pull request #964 by edenrox (2013-10-02 15:32:46+00:00)
Title: [FIXED JENKINS-10675] use X-Forwarded-Proto if present

Wrote this fix to make Jenkins work correctly when running behind a reverse proxy that adds an X-Forwarded-Proto HTTP header (e.g. nginx, apache, Amazon ELB)