Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing head of lfs client batch (go-gitea#28550)
Browse files Browse the repository at this point in the history
lunny authored and fuxiaohei committed Jan 17, 2024
1 parent b53c5a9 commit c1e47ff
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
@@ -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
}

0 comments on commit c1e47ff

Please sign in to comment.