[#163] Fix zip streaming

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-06-17 12:17:02 +03:00 committed by Alex Vanin
parent 0a0af13bea
commit 85ee0c44a2
2 changed files with 76 additions and 71 deletions

View file

@ -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) {