Notifications - Fixing support for headers in custom post://, posts:// notifications, ability to include HTTP headers when making custom notifications (#2018)

This commit is contained in:
dgtlmoon
2023-12-01 18:05:19 +01:00
committed by GitHub
parent 98f56736c1
commit f0823126c8
5 changed files with 68 additions and 26 deletions

View File

@@ -205,6 +205,9 @@ def live_server_setup(live_server):
with open("test-datastore/notification-url.txt", "w") as f:
f.write(request.url)
with open("test-datastore/notification-headers.txt", "w") as f:
f.write(str(request.headers))
if request.content_type:
with open("test-datastore/notification-content-type.txt", "w") as f:
f.write(request.content_type)