1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

Fix #31185 try fix lfs download from bitbucket failed (#31201)

Fix #31185
This commit is contained in:
Zoupers Zou
2024-06-12 06:22:28 +08:00
committed by GitHub
parent fc2d75f86d
commit e25d6960b5
8 changed files with 16 additions and 13 deletions

View File

@@ -10,6 +10,8 @@ import (
const (
// MediaType contains the media type for LFS server requests
MediaType = "application/vnd.git-lfs+json"
// Some LFS servers offer content with other types, so fallback to '*/*' if application/vnd.git-lfs+json cannot be served
AcceptHeader = "application/vnd.git-lfs+json;q=0.9, */*;q=0.8"
)
// BatchRequest contains multiple requests processed in one batch operation.