From 229eae527cd3e28f474cf4a8d7c6212687ddd09c Mon Sep 17 00:00:00 2001 From: Cameron Downer Date: Wed, 4 Jan 2017 11:46:13 +0000 Subject: [PATCH] Converted status code in response to string If the status code is not a string Azure Functions will always default to 200 --- myfunction1/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/myfunction1/run.py b/myfunction1/run.py index 3e1ddc5..6aec292 100644 --- a/myfunction1/run.py +++ b/myfunction1/run.py @@ -36,7 +36,7 @@ # All data to be returned to the client gets put into this dict returnData = { #HTTP Status Code: - "status": 200, + "status": str(200), #Response Body: "body": "

Azure Works :)

", @@ -50,4 +50,4 @@ # Output the response to the client output = open(os.environ['res'], 'w') -output.write(json.dumps(returnData)) \ No newline at end of file +output.write(json.dumps(returnData))