Skip to content

Commit

Permalink
Add missing head of lfs client batch (go-gitea#28550)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored and silverwind committed Feb 20, 2024
1 parent a76df54 commit d524b27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/lfs/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ 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}, payload)
req, err := createRequest(ctx, http.MethodPost, url, map[string]string{
"Content-Type": MediaType,
"Accept": MediaType,
}, payload)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d524b27

Please sign in to comment.