RestfulTool icon indicating copy to clipboard operation
RestfulTool copied to clipboard

Post请求的时候,设置请求体为json,在发送请求的时候,自动把花括号给去掉了

Open andotorg opened this issue 3 years ago • 1 comments

Describe the bug Post请求的时候,设置请求体为json,在发送请求的时候,自动把花括号给去掉了

To Reproduce Steps to reproduce the behavior:

  1. Post请求的时候,设置请求体为json,在发送请求的时候,自动把花括号给去掉了
  2. 导致后端报错: 错误信息
JSON parse error: syntax error, expect {, actual ident, pos 0, fastjson-version 1.2.62; nested exception is com.alibaba.fastjson.JSONException: syntax error, expect {, actual ident, pos 0, fastjson-version 1.2.62]

下面是抓包截图: image

andotorg avatar Apr 02 '21 10:04 andotorg

应该是application/jsonapplication/x-www-form-urlencoded判断反了,或者版本升级导致有部分属性取不到导致赋值了默认的FORM_URLENCODED

pdkst avatar Apr 14 '21 07:04 pdkst