only write if set

1659-notification-format
dgtlmoon 2 years ago
parent 15b1baaa24
commit bc710a5875

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

Loading…
Cancel
Save