Skip to content

Commit 2f7836c

Browse files
authored
Merge pull request #6 from CodeShellDev/main
Update Dev
2 parents 2d2d00d + decbea9 commit 2f7836c

File tree

2 files changed

+4
-38
lines changed

2 files changed

+4
-38
lines changed

.github/helper-scripts/replace_placeholders.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

app.py

Lines changed: 4 additions & 1 deletion
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:
@@ -141,7 +144,7 @@ def proxy(path):
141144
json=jsonData
142145
)
143146

144-
infoLog(f"Forwarded {resp.text} to {targetURL} [{method}]")
147+
infoLog(f"Forwarded {jsonData} to {targetURL} [{method}]")
145148

146149
# return Response(resp.content, status=resp.status_code, headers=dict(resp.headers))
147150

0 commit comments

Comments
 (0)