File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,12 @@ import (
1414const (
1515 // MediaType contains the media type for LFS server requests
1616 MediaType = "application/vnd.git-lfs+json"
17- // Some LFS servers offer content with other types, so fallback to '*/*' if application/vnd.git-lfs+json cannot be served
18- AcceptHeader = "application/vnd.git-lfs+json;q=0.9, */*;q=0.8"
19- UserAgentHeader = "git-lfs"
17+ // AcceptHeader Some LFS servers offer content with other types, so fallback to '*/*' if application/vnd.git-lfs+json cannot be served
18+ AcceptHeader = "application/vnd.git-lfs+json;q=0.9, */*;q=0.8"
19+ // UserAgentHeader Add User-Agent for gitea's self-implemented lfs client,
20+ // and the version is consistent with the latest version of git lfs can be avoided incompatibilities.
21+ // Some lfs servers will check this
22+ UserAgentHeader = "git-lfs/3.6.0 (Gitea)"
2023)
2124
2225// BatchRequest contains multiple requests processed in one batch operation.
You can’t perform that action at this time.
0 commit comments