Fix for nonstandard HTTP_X_FORWARDED_PROTO header

Fixes https in loadbalancers.

http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Common_non-standard_request_headers