Skip to content

Commit 7bd6a3a

Browse files
authored
Merge pull request #33 from serv-c/drgroot-patch-2
fix(http): adding compatibility patch for older releases
2 parents 8c5d3f1 + 108ee1e commit 7bd6a3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

servc/svc/com/http/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ def _postMessage(self):
127127
if content_type == "application/json":
128128
body = request.json
129129

130+
# compatibility patch
131+
if "inputs" in body and "argument" not in body:
132+
body["argument"] = body["inputs"]
133+
130134
must_have_keys = ("type",)
131135
for key in must_have_keys:
132136
if key not in body:

0 commit comments

Comments
 (0)