mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fix 4549 webhook body encode in utf-8
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user