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 authored and silverwind committed Feb 20, 2024
1 parent 1d65589 commit e9f4061
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 e9f4061

Please sign in to comment.