0

JSON 的 HTTP header Content-Type应该返回什么值?

beatrice created at6 years ago view count: 2480
report
回复
0

参考rfc: http://www.ietf.org/rfc/rfc4627.txt 正确的应该是返回

Content-Type: application/json

JSONP请求因为是返回的javascript代码, 所以header要区别下

Content-Type: application/javascript
6 years ago 回复

Recent search keywords