ret={

  'a':1

}

return jsonify(ret)

不能直接返回ret,应该用jsonify()。这样返回的Content-Type: application/json;charset=utf-8

 

如果使用json.dumps(ret)返回的Content-Type: text/html

相关文章:

  • 2021-09-29
  • 2021-05-04
  • 2021-09-10
  • 2021-07-22
  • 2021-11-05
  • 2021-11-05
  • 2021-11-05
  • 2021-11-05
猜你喜欢
  • 2022-12-23
  • 2021-09-29
  • 2021-11-15
  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案