Merge pull request #140 from cdpm/make-sync-download-request-well-formed

Add missing boundary at end of multipart/form-data request body generated in Syncer.req()
This commit is contained in:
Damien Elmes 2016-09-05 18:34:12 +10:00 committed by GitHub
commit 45e2d197dd

View File

@ -582,7 +582,7 @@ Content-Type: application/octet-stream\r\n\r\n""")
tgt.close()
break
tgt.write(data)
buf.write(b'\r\n' + bdry + b'--\r\n')
buf.write(b'\r\n' + bdry + b'--\r\n')
size = buf.tell()
# connection headers
headers = {