[FIXED JENKINS-10675] use X-Forwarded-Proto if present
Merge pull request #964 from edenrox/master

[FIXED JENKINS-10675] use X-Forwarded-Proto if present