14725: Don't give a cluster_id when updating container request record
[arvados.git] / sdk / cwl / arvados_cwl / http.py
index ccc2e793b067f4e0853da275947a08d3630723a3..47a304372c58a27ecde8d8c13bb55d6435f9cf79 100644 (file)
@@ -132,7 +132,7 @@ def http_to_keep(api, project_uuid, url, utcnow=datetime.datetime.utcnow):
     count = 0
     start = time.time()
     checkpoint = start
-    with c.open(name, "w") as f:
+    with c.open(name, "wb") as f:
         for chunk in req.iter_content(chunk_size=1024):
             count += len(chunk)
             f.write(chunk)