1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #3989: Correct HTTP content type assignment for webhooks

This commit is contained in:
Jeremy Stretch
2020-01-22 20:33:57 -05:00
parent 2445d1896b
commit 7b517abdb6
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
## Bug Fixes ## Bug Fixes
* [#3983](https://github.com/netbox-community/netbox/issues/3983) - Permit the creation of multiple unnamed devices * [#3983](https://github.com/netbox-community/netbox/issues/3983) - Permit the creation of multiple unnamed devices
* [#3989](https://github.com/netbox-community/netbox/issues/3989) - Correct HTTP content type assignment for webhooks
--- ---

View File

@ -23,7 +23,7 @@ def process_webhook(webhook, data, model_name, event, timestamp, username, reque
'data': data 'data': data
} }
headers = { headers = {
'Content-Type': webhook.get_http_content_type_display(), 'Content-Type': webhook.http_content_type,
} }
if webhook.additional_headers: if webhook.additional_headers:
headers.update(webhook.additional_headers) headers.update(webhook.additional_headers)