diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-12-20 19:54:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 12:54:34 +0100 |
commit | 577421691b5bca38b9116eb36efcfc9b1dfe2043 (patch) | |
tree | c8242894ec1e71c3c74a3b607fa58a5fcfa1832b /modules/lfs | |
parent | 9483ccd463d31d465599eb4a0cc5621bc2caaf70 (diff) | |
download | gitea-577421691b5bca38b9116eb36efcfc9b1dfe2043.tar.gz gitea-577421691b5bca38b9116eb36efcfc9b1dfe2043.zip |
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
Diffstat (limited to 'modules/lfs')
-rw-r--r-- | modules/lfs/http_client.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/lfs/http_client.go b/modules/lfs/http_client.go index de0b1e4fed..4177473362 100644 --- a/modules/lfs/http_client.go +++ b/modules/lfs/http_client.go @@ -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 } |