Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .github/helper-scripts/replace_placeholders.sh

This file was deleted.

5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ def proxy(path):
headers = {k: v for k, v in request.headers if k.lower() != 'host'}

if incomingJSON:
if not incomingJSON.get("recipients", None):
incomingJSON["recipients"] = "${RECIPIENTS}"

jsonData = fillInVars(incomingJSON)

if "${NUMBER}" in path:
Expand All @@ -141,7 +144,7 @@ def proxy(path):
json=jsonData
)

infoLog(f"Forwarded {resp.text} to {targetURL} [{method}]")
infoLog(f"Forwarded {jsonData} to {targetURL} [{method}]")

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

Expand Down