fix auth header

This commit is contained in:
adevjoe 2023-06-17 09:28:57 +08:00
parent 0fb110a479
commit 48ebff372b
No known key found for this signature in database
GPG Key ID: 320204213030865E

View File

@ -70,8 +70,6 @@ func GetResponseBody(method, url string, channel *model.Channel, headers http.He
for k := range headers {
req.Header.Add(k, headers.Get(k))
}
auth := fmt.Sprintf("Bearer %s", channel.Key)
req.Header.Add("Authorization", auth)
res, err := client.Do(req)
if err != nil {
return nil, err