阿里云api,带空格的记录签名校验失败 #925
scientificCommunity
started this conversation in
General
Replies: 1 comment
-
这对本项目来说不是个 bug,我给写到 discussions 里吧,提醒一下可能存在的 bug。如果这段代码将来挪作它用,也方便回溯问题。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我目前基于本项目扩展了TXT功能,发现带空格的记录无法被正确验签。我看了代码里对空格的处理是符合阿里云文档所述的。
然后我发现阿里云那边会把url解码后再将里面的空格编码成%2520(而不是文档说的%20)后再验签,所以解决方案是在签名前将空格替换成%2520
Beta Was this translation helpful? Give feedback.
All reactions