Skip to content

Commit

Permalink
Fix Transport.post log message response content decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
lamenezes committed Oct 2, 2018
1 parent 29976d9 commit 7277be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zeep/transports.py
Expand Up @@ -75,7 +75,7 @@ def post(self, address, message, headers):
else:
log_message = response.content
if isinstance(log_message, bytes):
log_message = log_message.decode('utf-8')
log_message = log_message.decode(response.encoding or 'utf-8')

self.logger.debug(
"HTTP Response from %s (status: %d):\n%s",
Expand Down

0 comments on commit 7277be3

Please sign in to comment.