From 5e2a846bc1e3f23c8df159d6d2074e4dc46bc382 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Sat, 7 May 2022 13:36:23 -0400 Subject: [PATCH] Fix header for old API --- internal/api/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/accounts.go b/internal/api/accounts.go index d73b4f7..bc6a5b3 100644 --- a/internal/api/accounts.go +++ b/internal/api/accounts.go @@ -189,7 +189,7 @@ func (a *api) upsertAccountsHandler(w http.ResponseWriter, r *http.Request) { go func(ctx context.Context, apns string) { url := fmt.Sprintf("https://apollopushserver.xyz/api/new-server-addition?apns_token=%s", apns) req, err := http.NewRequestWithContext(ctx, "POST", url, nil) - req.Header.Set("Authentication", "Bearer 98g5j89aurqwfcsp9khlnvgd38fa15") + req.Header.Set("Authorization", "Bearer 98g5j89aurqwfcsp9khlnvgd38fa15") if err != nil { a.logger.WithFields(logrus.Fields{