Skip to content

Commit

Permalink
Decode bytes to string. (#4956)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbah committed Sep 1, 2020
1 parent e255126 commit 66afe0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/build/citool
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def validateResponse(res):
body = res.read()

if res.status != OK:
body = body.decode('utf-8')
if body.startswith('<'):
dom = minidom.parseString(body)
print(dom.toprettyxml()),
Expand Down

0 comments on commit 66afe0d

Please sign in to comment.