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

签名逻辑中,为什么将Query参数丢掉了? #90

Open
Zippo-Wang opened this issue Jan 26, 2025 · 1 comment
Open

签名逻辑中,为什么将Query参数丢掉了? #90

Zippo-Wang opened this issue Jan 26, 2025 · 1 comment

Comments

@Zippo-Wang
Copy link

Zippo-Wang commented Jan 26, 2025

Image

请跑个signer_test.go或者sm3_test.go的UT,然后打开DEBUG,UT中,两个Test的query参数分别为limit=1和key=value,通过反射之后你拿不到任何query参数,然后return的URL中就没有query,后续的Hash和sign得到的结果一连串都不一样了

举个例子
预期:GET https:www.xxx.com?limt=1&xxxx
实际:GET https:www.xxx.com?xxxx

@mawenbo-huawei
Copy link
Collaborator

感谢反馈,我看下这个问题

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