aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-12-28 04:59:00 +0100
committerGitHub <noreply@github.com>2023-12-28 03:59:00 +0000
commit4cd666d7dcc7531806cde65c6468f93529cc23dd (patch)
tree75b01d863b42f40494c0fe8eb911f18369342219
parentc706b3e4366689ce5afca19476eaf18045e874db (diff)
downloadgitea-4cd666d7dcc7531806cde65c6468f93529cc23dd.tar.gz
gitea-4cd666d7dcc7531806cde65c6468f93529cc23dd.zip
Do not set `Accept` header twice (#28598)
Revert #28550 Don't add the `Accept` header twice.
-rw-r--r--modules/lfs/http_client.go5
1 files changed, 1 insertions, 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
}