Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class RESTClientObject(object):

# In the python 3, the response.data is bytes.
# we need to decode it to string.
if six.PY3:
if six.PY3 and r.getheader("Content-Type") != "application/octet-stream":
r.data = r.data.decode('utf8')

# log response body
Expand Down