Change yggdrasil.Client() to yggdrasil.SetClient()
This commit is contained in:
@ -65,8 +65,8 @@ func rawPost(endpoint string, payload interface{}) (*http.Response, error) {
|
|||||||
return client.Do(PostRequest)
|
return client.Do(PostRequest)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Client return the HTTP client for Yggdrasil.
|
// SetClient set the HTTP client for Yggdrasil.
|
||||||
// Only used when you want to modify settings of the HTTP client.
|
// Only used when you want to use custom HTTP client settings.
|
||||||
func Client() *http.Client {
|
func SetClient(newclient http.Client) {
|
||||||
return &client
|
client = newclient
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user