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:
Lunny Xiao 2023-12-20 19:54:34 +08:00 committed by GitHub
parent 9483ccd463
commit 577421691b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -79,7 +79,10 @@ func (c *HTTPClient) batch(ctx context.Context, operation string, objects []Poin
return nil, err 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 { if err != nil {
return nil, err return nil, err
} }