File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,9 @@ def _health(self):
116116 def _getResponse (self , id : str ):
117117 return jsonify (self ._cache .getKey (id ))
118118
119- def _postMessage (self ):
119+ def _postMessage (self , extra_params : Dict | None = None ):
120+ if not extra_params :
121+ extra_params = {}
120122 content_type = request .headers .get ("Content-Type" , None )
121123 if request .method == "GET" :
122124 return self ._getInformation ()
@@ -154,6 +156,11 @@ def _postMessage(self):
154156 "id" : body ["id" ] if "id" in body else "" ,
155157 "argument" : body ["argument" ],
156158 }
159+ if isinstance (body ["argument" ], dict ):
160+ payload ["argument" ] = {
161+ ** payload ["argument" ],
162+ ** extra_params ,
163+ }
157164 if "instanceId" in body :
158165 payload ["instanceId" ] = body ["instanceId" ]
159166 force : bool = True if "force" in body and body ["force" ] else False
You can’t perform that action at this time.
0 commit comments