Fix 4549 webhook body encode in utf-8

This commit is contained in:
kobayashi
2020-04-29 00:06:26 -04:00
parent 29345650c2
commit 783dcb8797
3 changed files with 3 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ def process_webhook(webhook, data, model_name, event, timestamp, username, reque
'method': webhook.http_method,
'url': webhook.payload_url,
'headers': headers,
'data': body,
'data': body.encode('utf8'),
}
logger.info(
"Sending {} request to {} ({} {})".format(