diff --git a/python3/16_Web_Services/f_web_application/d_using_flask/a_simple_apps/c_json_reponse.py b/python3/16_Web_Services/f_web_application/d_using_flask/a_simple_apps/c_json_reponse.py index 85d4b6ca..2e101fa3 100644 --- a/python3/16_Web_Services/f_web_application/d_using_flask/a_simple_apps/c_json_reponse.py +++ b/python3/16_Web_Services/f_web_application/d_using_flask/a_simple_apps/c_json_reponse.py @@ -28,7 +28,7 @@ def json_example(): data = {"key": "value"} json_data = json.dumps(data) - response = make_response(json_data) + response = make_response(json_data, {'Content-Type': 'application/json'}) response.mimetype = "application/json" return response