Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST 请求中使用JSON字符串,服务端接收到不完整参数 #1544

Open
lin511622 opened this issue Mar 1, 2020 · 1 comment
Open

Comments

@lin511622
Copy link

lin511622 commented Mar 1, 2020

看了 http://www.nutz.cn/yvr/t/rgb3f3784ii81oif289i9g5q92 这个帖子,根据兽总的回答配置后,很快就能正常将json参数传递到服务端。
但是出现一个问题,json字符串中如果某个Key的值是URL,在服务端接收到的值URL会少一个/

例如请求的参数
{"assignID":true,"autoExtract":false,"nodeName":"test","links":"http://www.test.com/file.txt"}
服务端接收到的link为http:/www.test.com/file.txt。

大概看了一下源码应该是MappingNode.java中在分割path的时候使用了"/"导致的。

@wendal
Copy link
Member

wendal commented Mar 2, 2020

做不到吧, 一般也不这样传json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants