mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
Add missing boundary at end of multipart/form-data request body for requests that include no application/octet-stream data
This makes the sync request sent to the /download endpoint valid multipart/form-data according to RFC 2046, 5.1
This commit is contained in:
parent
72f128156e
commit
079d551782
1 changed files with 1 additions and 1 deletions
|
@ -582,7 +582,7 @@ Content-Type: application/octet-stream\r\n\r\n""")
|
||||||
tgt.close()
|
tgt.close()
|
||||||
break
|
break
|
||||||
tgt.write(data)
|
tgt.write(data)
|
||||||
buf.write(b'\r\n' + bdry + b'--\r\n')
|
buf.write(b'\r\n' + bdry + b'--\r\n')
|
||||||
size = buf.tell()
|
size = buf.tell()
|
||||||
# connection headers
|
# connection headers
|
||||||
headers = {
|
headers = {
|
||||||
|
|
Loading…
Reference in a new issue