jenkinsci/jenkins — pull request #671 by olivergondza (2013-01-15 16:04:44+00:00)
Title: Use request protocol for configured Jenkins url

Jenkins serves preconfigured url by default from `getRootUrl`. It is problematic for instances operating under both http and https protocol. This change makes `getRootUrl` return the same protocol as in current request.