Skip to content

Commit db75b1f

Browse files
authored
Update solutions.hide.py
1 parent 16977e6 commit db75b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.learn/exercises/07-post_todo/solutions.hide.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def hello_world():
99

1010
@app.route('/todos', methods=['POST'])
1111
def add_new_todo():
12-
request_body = request.data
12+
request_body = request.json
1313
print("Incoming request with the following body", request_body)
1414
return 'Response for the POST todo'
1515

0 commit comments

Comments
 (0)