Skip to content

Commit 7ef9cbc

Browse files
authored
verify if data is binary
1 parent 35fb348 commit 7ef9cbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/atom/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def _get_proxy_net_location(proxy_settings):
332332

333333

334334
def _send_data_part(data, connection):
335-
if isinstance(data, (str,)):
335+
if isinstance(data, (str, bytes)):
336336
connection.send(data)
337337
return
338338
# Check to see if data is a file-like object that has a read method.

0 commit comments

Comments
 (0)