fix for  GRAILS-10563 "Cannot get Grails to work behind a Proxy"