From 4e2b70d86d71644ecfeab72f335f75fefdfa2a0b Mon Sep 17 00:00:00 2001 From: atavism Date: Sun, 23 Jun 2024 23:40:35 -0700 Subject: [PATCH] set headers with common package --- internalsdk/pro/pro.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internalsdk/pro/pro.go b/internalsdk/pro/pro.go index c6a982eac..bcc8da2a5 100644 --- a/internalsdk/pro/pro.go +++ b/internalsdk/pro/pro.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" "net/http" - "net/http/httputil" "strings" "github.com/getlantern/errors" @@ -73,11 +72,7 @@ func (c *proClient) setUserHeaders() func(client *resty.Client, req *http.Reques common.ProTokenHeader, common.UserIdHeader, }, ", ")) - // Add auth headers only if not present, to avoid race conditions when creating new user or switching user, i.e., linking device - // to a new account. common.AddCommonHeadersWithOptions(uc, req, false) - d, _ := httputil.DumpRequest(req, false) - log.Debugf("Dump is %s", string(d)) return nil } }