mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:49:52 +01:00
Do not set Accept
header twice (#28598)
Revert #28550 Don't add the `Accept` header twice.
This commit is contained in:
parent
c706b3e436
commit
4cd666d7dc
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue