X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fmrstub%2Fapp%2Fmain.py;h=c0df8c17fd4df808a489045daea8c0ccd9146d45;hb=333e6d78ea15d1b8eefafcab426ac2fc641386de;hp=9ad75e67f777f41460f4b9746e565c63e6c84d6a;hpb=d2aeca8843fe3ffca2e73dec5b64daeef0dda938;p=nonrtric.git diff --git a/test/mrstub/app/main.py b/test/mrstub/app/main.py index 9ad75e67..c0df8c17 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) @@ -544,7 +544,7 @@ def current_responses(): ### Admin ### -# Reset all messsages and counters +# Reset all messages and counters @app.route('/reset', methods=['GET', 'POST', 'PUT']) def reset():