mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-21 01:14:31 +08:00
Add missing head of lfs client batch (#28550)
ref https://github.com/git-lfs/git-lfs/blob/main/docs/api/batch.md#git-lfs-batch-api
This commit is contained in:
parent
9483ccd463
commit
577421691b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user