internal/config: set AuthHeader for teeproxy
At the moment, the AuthHeader is set in internal/config.Config, which
means that it isn't being set for teeproxy requests. This is now fixed.
@@ -231,6 +231,7 @@ func Init(ctx context.Context) (_ *Config, err error) {
// Build a Config from the execution environment, loading some values
// from envvars and others from remote services.
cfg := &Config{
+ AuthHeader: os.Getenv("GO_DISCOVERY_AUTH_HEADER"),
IndexURL: GetEnv("GO_MODULE_INDEX_URL", "https://index.golang.org/index"),
ProxyURL: GetEnv("GO_MODULE_PROXY_URL", "https://proxy.golang.org"),
Port: os.Getenv("PORT"),
