wendux / fly

:rocket: Supporting request forwarding and Promise based HTTP client for all JavaScript runtimes.
https://wendux.github.io/dist/#/language
MIT License
3.9k stars 639 forks source link

POST方法里object里的字段少于应该提交的字段时重大错误 #241

Open ankexun opened 5 years ago

ankexun commented 5 years ago

比如一个完整对象是 object = { Id: 0, Content: '', Status: 3, Memo: '' }; 如果定义成 object = { Id: 0, Content: '', Status: 3, }; 使用POST提交,有可能会从别的session里,拿到Memo: ''的数据POST到后端. 我用axios没有问题,改用fly后出现,花了好多时间才找到原因.