cakephp/cakephp — pull request #1550 by garethrhughes (2013-08-23 15:31:47+00:00)
Title: Making env('HTTPS') respect HTTP_X_FORWARDED_PROTO

Solves an issue with url generation when behind load balancers or proxies which do not set server env https but instead pass HTTP_X_FORWARDED_PROTO as https.