火狐浏览器请求头默认为
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
导致返回了html页面,前端解析json就会出错,
想问下Accept头是怎么匹配的,比如*/*,text/html为什么会匹配为text/html,而*/*就会匹配application/json?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
学习是最好的投资!