We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在调试 DeleteMessage 的时候发现这一问题.
一般使用 URLSearchParams 进行 url query 的操作, 可是因为 DeleteMessage 中的 url query 可能存在需要编码的值, 所以就自动对其进行了编码.
可是编码后, 在 MNS API 返回的结果中报错, 说我们的 sign 不符. 然后我们强制取消了编码, 恢复正常.
可见, MNS API 不会对 url query 进行解码操作后再进行 sign 校验, 而是直接校验, 从而造成了问题.
URL 的规范见: https://url.spec.whatwg.org/#urlsearchparams
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在调试 DeleteMessage 的时候发现这一问题.
一般使用 URLSearchParams 进行 url query 的操作, 可是因为 DeleteMessage 中的 url query 可能存在需要编码的值, 所以就自动对其进行了编码.
可是编码后, 在 MNS API 返回的结果中报错, 说我们的 sign 不符. 然后我们强制取消了编码, 恢复正常.
可见, MNS API 不会对 url query 进行解码操作后再进行 sign 校验, 而是直接校验, 从而造成了问题.
URL 的规范见: https://url.spec.whatwg.org/#urlsearchparams
The text was updated successfully, but these errors were encountered: