forked from TrueCloudLab/frostfs-http-gw
[#163] Fix zip streaming
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
0a0af13bea
commit
85ee0c44a2
2 changed files with 76 additions and 71 deletions
|
@ -276,7 +276,7 @@ func makeZipRequest(t *testing.T, url string, names, contents []string) {
|
|||
|
||||
data, err := io.ReadAll(resp.Body)
|
||||
require.NoError(t, err)
|
||||
checkZip(t, data, resp.ContentLength, names, contents)
|
||||
checkZip(t, data, int64(len(data)), names, contents)
|
||||
}
|
||||
|
||||
func checkZip(t *testing.T, data []byte, length int64, names, contents []string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue