change forceHttps implementation following removal from cloudfoundry
platform