From b6c7c580624761b9a4d33e68c74f61c6d1564d5b Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Mon, 23 May 2022 17:41:19 -0400 Subject: [PATCH] revert client change --- internal/reddit/request.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/reddit/request.go b/internal/reddit/request.go index 02269da..230a7a7 100644 --- a/internal/reddit/request.go +++ b/internal/reddit/request.go @@ -59,10 +59,6 @@ func (r *Request) HTTPRequest(ctx context.Context) (*http.Request, error) { req.Header.Add("Accept", "application/json") req.Header.Add("User-Agent", userAgent) - if len(r.body) > 0 { - req.Header.Add("Content-Type", "multipart/form-data") - } - if r.token != "" { req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", r.token)) }