github 加速提示无效输入 #62
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
这个链接不知道为什么提示无效输入。 https://github.com/TermoraDev/termora/releases/download/1.0.17/termora-1.0.17-windows-x86-64.zip
没问题呀
https://demo.52013120.xyz/https://github.com/TermoraDev/termora/releases/download/1.0.17/termora-1.0.17-windows-x86-64.zip
不应该啊,我用的最新版镜像
换了个服务器可以下载,查看f12发现提示403,不知道是不是这台服务器被 github 拒绝了
得看下日志才能知道
看docker日志没有异常
这个就不行:https://hubproxy.itxbbazt.eu.org/https://github.com/TermoraDev/termora/releases/download/1.0.17/termora-1.0.17-windows-x86-64.zip
日志
试试在服务端本地下载:
本地没问题
修改了一下反代确实能下载,但是反代怎么能影响到这个斜杆的?
只是这里有没有斜杆
我看53的issue 也是
这一段的处理应该是有问题?
AI的解释
Nginx
proxy_pass尾部有/时,会触发 URI 重写和规范化,并且默认merge_slashes on;会把连续//合并成/。如果请求路径包含
https://,就可能被折叠成https:/,导致路径错误。差异原因:
proxy_pass http://127.0.0.1:5000/;(有/):Nginx 会替换 location 前缀并折叠//,https://→https:/。proxy_pass http://127.0.0.1:5000;(无/):原始 URI 不改写,https://保持不变。nginx反代修复方案:
/(最简单)2:保留尾部 /,关闭斜杠折叠
3:原样转发请求 URI
ok,懂了,感谢。那请问既然后端默认会处理,那是不是可以在发起请求的时候就先把协议处理了?像这样:https://demo.52013120.xyz/github.com/TermoraDev/termora/releases/download/1.0.17/termora-1.0.17-windows-x86-64.zip