Skip to content

Commit

Permalink
Do not set Accept header twice (go-gitea#28598)
Browse files Browse the repository at this point in the history
Revert go-gitea#28550

Don't add the `Accept` header twice.
  • Loading branch information
KN4CK3R committed Dec 28, 2023
1 parent c706b3e commit 4cd666d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/lfs/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4cd666d

Please sign in to comment.