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

bindbody 参数为string指针时如果数据量过大,会导致内容出现错误。 #307

Open
MarsMan1994 opened this issue Aug 19, 2021 · 3 comments

Comments

@MarsMan1994
Copy link

使用抓包是正常的,但是使用bindbody数据会发生错误

@guonaihong
Copy link
Owner

guonaihong commented Aug 20, 2021

可有能复现的代码?
我又扫了下那部分代码, 只是把[]byte转成string, 然后解引用,对你的现象还是挺好奇的。

@MarsMan1994
Copy link
Author

MarsMan1994 commented Aug 23, 2021

可有能复现的代码?
我又扫了下那部分代码, 只是把[]byte转成string, 然后解引用,对你的现象还是挺好奇的。

你好,接口数据量比较大,bindbody 参数为string时,不管把string写入到文件还是打印都会出现内容不全的情况。我把参数改为byte.buffer类型之后获取到的是没问题的。我当时试过数据量不大时没有问题,量大会出错,等我回去复现后发你

@guonaihong
Copy link
Owner

guonaihong commented Aug 23, 2021 via email

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