diff options
author | Zoupers Zou <1171443643@qq.com> | 2024-06-12 06:22:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 22:22:28 +0000 |
commit | e25d6960b5749fbf7f88ebb6b27878c0459817da (patch) | |
tree | 5d5b583916f57cdc000d86be8be2a446c428c7d1 /modules/lfs/http_client_test.go | |
parent | fc2d75f86d77b022ece848acf2581c14ef21d43b (diff) | |
download | gitea-e25d6960b5749fbf7f88ebb6b27878c0459817da.tar.gz gitea-e25d6960b5749fbf7f88ebb6b27878c0459817da.zip |
Fix #31185 try fix lfs download from bitbucket failed (#31201)
Fix #31185
Diffstat (limited to 'modules/lfs/http_client_test.go')
-rw-r--r-- | modules/lfs/http_client_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/lfs/http_client_test.go b/modules/lfs/http_client_test.go index 7459d9c0c9..7431132f76 100644 --- a/modules/lfs/http_client_test.go +++ b/modules/lfs/http_client_test.go @@ -155,7 +155,7 @@ func TestHTTPClientDownload(t *testing.T) { hc := &http.Client{Transport: RoundTripFunc(func(req *http.Request) *http.Response { assert.Equal(t, "POST", req.Method) assert.Equal(t, MediaType, req.Header.Get("Content-type")) - assert.Equal(t, MediaType, req.Header.Get("Accept")) + assert.Equal(t, AcceptHeader, req.Header.Get("Accept")) var batchRequest BatchRequest err := json.NewDecoder(req.Body).Decode(&batchRequest) @@ -263,7 +263,7 @@ func TestHTTPClientUpload(t *testing.T) { hc := &http.Client{Transport: RoundTripFunc(func(req *http.Request) *http.Response { assert.Equal(t, "POST", req.Method) assert.Equal(t, MediaType, req.Header.Get("Content-type")) - assert.Equal(t, MediaType, req.Header.Get("Accept")) + assert.Equal(t, AcceptHeader, req.Header.Get("Accept")) var batchRequest BatchRequest err := json.NewDecoder(req.Body).Decode(&batchRequest) |