diff options
author | hiifong <i@hiif.ong> | 2024-12-13 05:36:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 21:36:39 +0000 |
commit | 0b8a8941a01ed4bf914843c88740ad6203550b85 (patch) | |
tree | a153d46de1fd573b9a60d72bbaa894fd3460ab7b /modules/lfs/shared.go | |
parent | a03fdd9566d62abd208af9ae30e58802a658e358 (diff) | |
download | gitea-0b8a8941a01ed4bf914843c88740ad6203550b85.tar.gz gitea-0b8a8941a01ed4bf914843c88740ad6203550b85.zip |
Fix lfs migration (#32812)
Fix: #32803
Diffstat (limited to 'modules/lfs/shared.go')
-rw-r--r-- | modules/lfs/shared.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/lfs/shared.go b/modules/lfs/shared.go index a4326b57b2..40ad789c1d 100644 --- a/modules/lfs/shared.go +++ b/modules/lfs/shared.go @@ -15,7 +15,8 @@ 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" + AcceptHeader = "application/vnd.git-lfs+json;q=0.9, */*;q=0.8" + UserAgentHeader = "git-lfs" ) // BatchRequest contains multiple requests processed in one batch operation. |