Skip to content

Commit

Permalink
Fix erronous encode of bytes array
Browse files Browse the repository at this point in the history
  • Loading branch information
gschwind committed Apr 22, 2021
1 parent 0823c32 commit 2c90d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywps/inout/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def _json_data(self, data):

else:
# Otherwise we assume all other formats are unsafe and need to be enclosed in a CDATA tag.
if isinstance(self.data, bytes):
if not isinstance(self.data, bytes):
out = self.data.encode(self.data_format.encoding or 'utf-8')
else:
out = self.data
Expand Down

0 comments on commit 2c90d18

Please sign in to comment.