Skip to content

Commit

Permalink
fixing proxy settings (#68) (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
mheese authored Nov 29, 2019
1 parent ca9ee21 commit 31e3dc4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apiutils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func GetServiceVersions(ctx context.Context, api string, tlsConfig *tls.Config)
client := &http.Client{
Timeout: 10 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: tlsConfig,
},
}
Expand Down Expand Up @@ -72,6 +73,7 @@ func GetModelVersion(ctx context.Context, api string, tlsConfig *tls.Config) (*V
client := &http.Client{
Timeout: 10 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: tlsConfig,
},
}
Expand Down Expand Up @@ -105,6 +107,7 @@ func GetConfig(ctx context.Context, api string, tlsConfig *tls.Config) (map[stri
client := &http.Client{
Timeout: 10 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: tlsConfig,
},
}
Expand Down Expand Up @@ -138,6 +141,7 @@ func GetPublicCA(ctx context.Context, api string, tlsConfig *tls.Config) ([]byte
client := &http.Client{
Timeout: 10 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: tlsConfig,
},
}
Expand Down Expand Up @@ -183,6 +187,7 @@ func GetJWTCert(ctx context.Context, api string, tlsConfig *tls.Config) ([]byte,
client := &http.Client{
Timeout: 10 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: tlsConfig,
},
}
Expand Down Expand Up @@ -229,6 +234,7 @@ func GetManifestURL(ctx context.Context, api string, tlsConfig *tls.Config) ([]b
client := &http.Client{
Timeout: 10 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: tlsConfig,
},
}
Expand Down Expand Up @@ -256,6 +262,7 @@ func GetGoogleOAuthClientID(ctx context.Context, api string, tlsConfig *tls.Conf
client := &http.Client{
Timeout: 10 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: tlsConfig,
},
}
Expand Down

0 comments on commit 31e3dc4

Please sign in to comment.