summaryrefslogtreecommitdiffstats
path: root/modules/lfs/http_client.go
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-12-28 04:59:00 +0100
committerGitHub <noreply@github.com>2023-12-28 04:59:00 +0100
commit4cd666d7dcc7531806cde65c6468f93529cc23dd (patch)
tree75b01d863b42f40494c0fe8eb911f18369342219 /modules/lfs/http_client.go
parent[skip ci] Updated translations via Crowdin (diff)
downloadforgejo-4cd666d7dcc7531806cde65c6468f93529cc23dd.tar.xz
forgejo-4cd666d7dcc7531806cde65c6468f93529cc23dd.zip
Do not set `Accept` header twice (#28598)
Revert #28550 Don't add the `Accept` header twice.
Diffstat (limited to 'modules/lfs/http_client.go')
-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
}