Skip to content

Commit 714b015

Browse files
authored
Merge pull request #272 from chendotjs/master
server: go playground client supports specifying proxy from env
2 parents aaf820a + a198f54 commit 714b015

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/goplay/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func NewClient(baseUrl, userAgent string, timeout time.Duration) *Client {
3838
client: http.Client{
3939
Timeout: timeout,
4040
Transport: &http.Transport{
41+
Proxy: http.ProxyFromEnvironment,
4142
DialContext: dialer.DialContext,
4243
TLSHandshakeTimeout: timeout,
4344
},

0 commit comments

Comments
 (0)