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