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

Fixes #6082: Support colons in webhook header values

This commit is contained in:
jeremystretch
2021-04-12 12:09:37 -04:00
parent 348fca7e28
commit 7ddcec3a0d
2 changed files with 2 additions and 1 deletions

View File

@@ -140,7 +140,7 @@ class Webhook(models.Model):
ret = {}
data = render_jinja2(self.additional_headers, context)
for line in data.splitlines():
header, value = line.split(':')
header, value = line.split(':', 1)
ret[header.strip()] = value.strip()
return ret