1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-19 16:58:37 +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

@@ -26,7 +26,7 @@ func TestBasicTransferAdapter(t *testing.T) {
p := Pointer{Oid: "b5a2c96250612366ea272ffac6d9744aaf4b45aacd96aa7cfcb931ee3b558259", Size: 5}
roundTripHandler := func(req *http.Request) *http.Response {
assert.Equal(t, MediaType, req.Header.Get("Accept"))
assert.Equal(t, AcceptHeader, req.Header.Get("Accept"))
assert.Equal(t, "test-value", req.Header.Get("test-header"))
url := req.URL.String()