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

某个传递二进制流的post请求,在没有配置拦截的情况下,Mock会将后端返回的arraybuffer转换成字符串,导致二进制被破坏 #413

Open
KaidonWong opened this issue Mar 19, 2020 · 2 comments

Comments

@KaidonWong
Copy link

公司一个项目,后端有些接口写好了,有些接口没写好,所以就配置了mock,但是有一个用于下载文件的http请求,后端写好了,但是前端项目配置了mock之后,把后端返回的二进制流给改写了。二进制流被破坏

@yejingquan
Copy link

Hugo-X/Mock@2a6cc9c,可以改mock.js的源码

@weigram
Copy link

weigram commented Feb 2, 2021

Hugo-X/Mock@2a6cc9c,可以改mock.js的源码

我修改了 dist/mock.js,请问怎么在项目里引用的。

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