HTML response from server

后端 未结 8 1672
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 11:21

I have an app that submits some from data to a local server and as a result the server will send back a JSON. say {status:\"success\"}

Its working when I run the ap

8条回答
  •  滥情空心
    2021-01-13 11:37

    It looks like the accept header of your requests states text/html instead of application/json. Change it.

提交回复
热议问题