Skip to content

Commit 6348b8e

Browse files
committed
add default recipients if key is not specified
1 parent f35299c commit 6348b8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ def proxy(path):
122122
headers = {k: v for k, v in request.headers if k.lower() != 'host'}
123123

124124
if incomingJSON:
125+
if not incomingJSON.get("recipients", None):
126+
incomingJSON["recipients"] = "${RECIPIENTS}"
127+
125128
jsonData = fillInVars(incomingJSON)
126129

127130
if "${NUMBER}" in path:

0 commit comments

Comments
 (0)