Added ability to detect HTTP_X_FORWARDED_PROTO in get_location(), thanks to Daniel...