|
@@ -8,7 +8,7 @@ import (
|
|
"crypto/rand"
|
|
"crypto/rand"
|
|
"encoding/json"
|
|
"encoding/json"
|
|
"fmt"
|
|
"fmt"
|
|
- "io/ioutil"
|
|
|
|
|
|
+ "io"
|
|
"math"
|
|
"math"
|
|
"net/http"
|
|
"net/http"
|
|
|
|
|
|
@@ -200,7 +200,7 @@ func validateLicenseKey(encryptedData []byte, publicKey *[32]byte) ([]byte, erro
|
|
return nil, fmt.Errorf("could not validate license")
|
|
return nil, fmt.Errorf("could not validate license")
|
|
} // if you received a 200 cache the response locally
|
|
} // if you received a 200 cache the response locally
|
|
|
|
|
|
- body, err = ioutil.ReadAll(validateResponse.Body)
|
|
|
|
|
|
+ body, err = io.Copy(validateResponse.Body)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|