cemerick/friend — pull request #8 by otfrom (2012-05-09 16:04:11+00:00)
Title: requires-scheme alike for load balancers

Added requires-scheme-with-proxy so that friend works with heroku, elastic beanstalk and other load balancers that use x-forwarded-proto.

I don't think it should be the same as requires-scheme due to the potential security risks of using this in a non-loadbalanced environment.

I needed to make this change to make my code that uses friend/requires-scheme on heroku work. My understanding is that this will be needed for elastic beanstalk at aws as well as some other things (varnish I think).