Skip to content

Commit 8f12ca6

Browse files
committed
remove decompression
1 parent 68b5c9f commit 8f12ca6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

utils/proxy/_deserializer.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from ast import literal_eval
66
import base64
77
import gzip
8-
import io
98
import json
109
import logging
1110
from hashlib import md5
@@ -193,13 +192,7 @@ def json_load():
193192
if content_type_part.startswith("application/json"):
194193
item["content"] = json.loads(part.content)
195194

196-
elif content_type_part == "application/gzip":
197-
with gzip.GzipFile(fileobj=io.BytesIO(part.content)) as gz_file:
198-
content = gz_file.read()
199-
200-
_deserialize_file_in_multipart_form_data(item, headers, export_content_files_to, content)
201-
202-
elif content_type_part == "application/octet-stream":
195+
elif content_type_part == "application/gzip" or content_type_part == "application/octet-stream":
203196
_deserialize_file_in_multipart_form_data(item, headers, export_content_files_to, part.content)
204197

205198
else:

0 commit comments

Comments
 (0)