Webhooks are sent with invalid Content-Type header #3208

Closed
opened 2025-12-29 18:26:45 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Jan 23, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.8
  • NetBox version: 2.7.2

Steps to Reproduce

  1. Create and trigger a webhook
  2. Inspect the outbound request

Expected Behavior

The HTTP Content-Type header should be set to either application/json or application/x-www-form-urlencoded (whichever is specified in the Webhook defition).

Observed Behavior

The Content-Type is set to either JSON or Form data.

Originally created by @jeremystretch on GitHub (Jan 23, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.8 * NetBox version: 2.7.2 ### Steps to Reproduce 1. Create and trigger a webhook 2. Inspect the outbound request ### Expected Behavior The HTTP Content-Type header should be set to either `application/json` or `application/x-www-form-urlencoded` (whichever is specified in the Webhook defition). ### Observed Behavior The Content-Type is set to either `JSON` or `Form data`.
adam added the type: bugstatus: accepted labels 2025-12-29 18:26:45 +01:00
adam closed this issue 2025-12-29 18:26:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3208