Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Converted status code in response to string #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions myfunction1/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": "<h1>Azure Works :)</h1>",
Expand All @@ -50,4 +50,4 @@

# Output the response to the client
output = open(os.environ['res'], 'w')
output.write(json.dumps(returnData))
output.write(json.dumps(returnData))