From 4cd666d7dcc7531806cde65c6468f93529cc23dd Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Thu, 28 Dec 2023 04:59:00 +0100 Subject: [PATCH] Do not set `Accept` header twice (#28598) Revert #28550 Don't add the `Accept` header twice. --- modules/lfs/http_client.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/lfs/http_client.go b/modules/lfs/http_client.go index 4177473362..de0b1e4fed 100644 --- a/modules/lfs/http_client.go +++ b/modules/lfs/http_client.go @@ -79,10 +79,7 @@ func (c *HTTPClient) batch(ctx context.Context, operation string, objects []Poin return nil, err } - req, err := createRequest(ctx, http.MethodPost, url, map[string]string{ - "Content-Type": MediaType, - "Accept": MediaType, - }, payload) + req, err := createRequest(ctx, http.MethodPost, url, map[string]string{"Content-Type": MediaType}, payload) if err != nil { return nil, err }