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

url中不能添加问号 #18

Open
gongpulin opened this issue Nov 14, 2018 · 1 comment
Open

url中不能添加问号 #18

gongpulin opened this issue Nov 14, 2018 · 1 comment

Comments

@gongpulin
Copy link

qrcode.WriteFile("http://www.aa.com?a=123", qrcode.Medium, 256, "qr.png")

用微信扫描生成的二维码,用浏览器打开,发现请求的网址变为https://www.aa.com/?a=123
问号前面多了一个斜杠,http变为https

@yeqown
Copy link

yeqown commented Nov 26, 2018

这个是浏览器的原因,如果不支持'?',你可以测试用包含‘?’的非URL字符串来测试

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