From 48ebff372b7b66ac3d0fd762368f70bb18150443 Mon Sep 17 00:00:00 2001 From: adevjoe Date: Sat, 17 Jun 2023 09:28:57 +0800 Subject: [PATCH] fix auth header --- controller/channel-billing.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/controller/channel-billing.go b/controller/channel-billing.go index 66a4338e..1ff7ff42 100644 --- a/controller/channel-billing.go +++ b/controller/channel-billing.go @@ -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