Use http.DefaultClient for requests

This commit is contained in:
layou233
2022-05-14 07:40:39 +00:00
parent 805b7bf33b
commit 0db686f398
2 changed files with 2 additions and 3 deletions

View File

@ -26,7 +26,7 @@ func (e Error) Error() string {
var AuthURL = "https://authserver.mojang.com"
var client http.Client
var client = http.DefaultClient
func post(endpoint string, payload interface{}, resp interface{}) error {
rowResp, err := rawPost(endpoint, payload)