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

能否支持form/data类型的解析器 #108

Open
ylyxf opened this issue Jun 6, 2020 · 2 comments
Open

能否支持form/data类型的解析器 #108

ylyxf opened this issue Jun 6, 2020 · 2 comments

Comments

@ylyxf
Copy link

ylyxf commented Jun 6, 2020

当ajxa提交的data= new FormData()时,浏览器默认的Content-Type是multipart/form-data。
但是代码(index.ts的216~232行)中好像没有对这种情况进行处理。

@jaywcjlove
Copy link
Owner

@ylyxf 欢迎提交 PR

@vanpipy
Copy link
Contributor

vanpipy commented Nov 18, 2020

Hi @ylyxf ,

using-with-express

按照express的使用方式, 实际上对于不同的 content-type 是可以自定义的, 除非使用的途径是直接通过mocker来启动才有必要添加此类支持.

cc @jaywcjlove

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

3 participants