hide Payload in authenticate

This commit is contained in:
Tnze
2019-08-01 12:09:58 +08:00
parent 1cc07c15f5
commit 02eb7283d1
4 changed files with 16 additions and 12 deletions

View File

@ -167,7 +167,7 @@ func loginAuth(AsTk, name, UUID string, shareSecret []byte, er encryptionRequest
if err != nil {
return fmt.Errorf("make request error: %v", err)
}
PostRequest.Header.Set("User-Agent", "go-mc")
PostRequest.Header.Set("User-agent", "go-mc")
PostRequest.Header.Set("Connection", "keep-alive")
resp, err := client.Do(PostRequest)
if err != nil {