X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fmrstub%2Fapp%2Fmain.py;h=09954286bb74dbed4bf697fc24af00a540c3c30c;hb=8fbc63697f2edaaf2c9db40f54b318e7211361e2;hp=9ad75e67f777f41460f4b9746e565c63e6c84d6a;hpb=cc2606cc13f53ea9390a3e9b8b1f4ffc30a51de3;p=nonrtric.git diff --git a/test/mrstub/app/main.py b/test/mrstub/app/main.py index 9ad75e67..09954286 100644 --- a/test/mrstub/app/main.py +++ b/test/mrstub/app/main.py @@ -244,7 +244,7 @@ def sendrequest(): print(APP_WRITE_URL+" operation="+oper+" url="+url) correlation_id=str(time.time_ns()) payload=None - if (oper == "PUT") and (request.json is not None): + if (oper == "PUT") and len(request.data) > 0: payload=json.dumps(request.json) msg=create_message(oper, correlation_id, payload, url)