Fix IOU image upload

Fix #1141
pull/1139/head
Julien Duponchelle 7 years ago
parent 6514252a95
commit 27582bb68c
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -493,15 +493,6 @@ class Compute:
elif isinstance(data, io.BufferedIOBase):
chunked = True
headers['content-type'] = 'application/octet-stream'
def send_data(f):
while True:
chunk = f.read(4096)
if not chunk:
break
yield chunk
data = send_data(data)
else:
data = json.dumps(data).encode("utf-8")
try:

Loading…
Cancel
Save