Fixed nonstandard HTTP_X_FORWARDED_PROTO header