Skip to content

Commit 0180f07

Browse files
author
Alexey
committed
Fix upload photo
1 parent 1577572 commit 0180f07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/atom/http_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def _send_data_part(data, connection):
510510
# Read the file and send it a chunk at a time.
511511
while 1:
512512
binarydata = data.read(100000)
513-
if binarydata == '': break
513+
if binarydata == b'': break
514514
connection.send(binarydata)
515515
else:
516516
# The data object was not a file.

0 commit comments

Comments
 (0)