forked from gitea/gitea
1
0
Fork 0

Do not set `Accept` header twice (#28598)

Revert #28550

Don't add the `Accept` header twice.
This commit is contained in:
KN4CK3R 2023-12-28 04:59:00 +01:00 committed by GitHub
parent c706b3e436
commit 4cd666d7dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -79,10 +79,7 @@ func (c *HTTPClient) batch(ctx context.Context, operation string, objects []Poin
return nil, err return nil, err
} }
req, err := createRequest(ctx, http.MethodPost, url, map[string]string{ req, err := createRequest(ctx, http.MethodPost, url, map[string]string{"Content-Type": MediaType}, payload)
"Content-Type": MediaType,
"Accept": MediaType,
}, payload)
if err != nil { if err != nil {
return nil, err return nil, err
} }