From 2439c0ef684a6346363b0ee98c84f95dde903141 Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 9 Jan 2024 09:43:05 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A4=EC=9D=8C=20=ED=8B=B1=20=ED=86=A0?= =?UTF-8?q?=ED=81=B0=20=EB=B0=9B=EC=95=84=EC=98=AC=EB=95=8C=20=ED=81=AC?= =?UTF-8?q?=EB=9E=98=EC=8B=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- voicechat/eos_impl.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/voicechat/eos_impl.go b/voicechat/eos_impl.go index 18fd78d..d05370c 100644 --- a/voicechat/eos_impl.go +++ b/voicechat/eos_impl.go @@ -34,9 +34,8 @@ func eosTokenRefresh(target *unsafe.Pointer, ctx context.Context) { endpoint := "https://api.epicgames.dev/auth/v1/oauth/token" auth := base64.StdEncoding.EncodeToString([]byte(fmt.Sprintf("%s:%s", config.EosClientId, config.EosClientSecret))) - body := bytes.NewBufferString("grant_type=client_credentials&deployment_id=" + config.EosDeploymentId) for { - req, _ := http.NewRequest("POST", endpoint, body) + req, _ := http.NewRequest("POST", endpoint, bytes.NewBufferString("grant_type=client_credentials&deployment_id="+config.EosDeploymentId)) req.Header.Set("Content-Type", "application/x-www-form-urlencoded") req.Header.Set("Accept", "application/json") req.Header.Set("Authorization", fmt.Sprintf("Basic %s", auth))