Respect X-Forwarded-Proto header when building tarball URLs.