Fixing the logic to set the http header for "x-forwarded-proto"