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提交时content-type默认是application/x-www-form-urlencoded #258

Open HalcyonDaysssss opened 4 years ago

HalcyonDaysssss commented 4 years ago

表单post提交时content-type默认是application/x-www-form-urlencoded。 如果我在拦截器设置了request.headers["content-type"] = "application/json;charset=utf-8"; image data就变成了空(确认有值) image