From 141d05626b18f823328c30cf02a921eba4e9949f Mon Sep 17 00:00:00 2001 From: MatMasIt Date: Mon, 31 Jan 2022 09:21:42 +0100 Subject: [PATCH] Fixed chunks --- windowsAgent/source/do.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowsAgent/source/do.py b/windowsAgent/source/do.py index 54bcc17..036aa61 100644 --- a/windowsAgent/source/do.py +++ b/windowsAgent/source/do.py @@ -36,7 +36,7 @@ def upload(csvPath): offset = 0 headers = {} - for chunk in read_in_chunks(file_object, CHUNK_SIZE): + for chunk in read_in_chunks(file_object, 1024): offset = index + len(chunk) headers['Content-Range'] = 'bytes %s-%s/%s' % (index, offset - 1, content_size) headers['Authorization'] = auth