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

图床用Gitlab,返回的markdown的url里为什么多一个”-“ #58

Open
China-JasonW opened this issue Dec 17, 2020 · 3 comments

Comments

@China-JasonW
Copy link

image
如图所示,返回的markdown的url里在项目名称”PicRepository“和”raw“之间多一个”-“导致图片无法获取

@China-JasonW
Copy link
Author

China-JasonW commented Dec 17, 2020

@xiebruce
Copy link
Owner

xiebruce commented Dec 17, 2020

因为我分析的gitlab的图片链接就是这样的,你看:
image

当然我是直接用的gitlab.com测试的,你的是自建的吗?多了这个杠就无法访问,那去掉就可以访问了是吧?按道理,用的同一套代码,不应该呀。

你试试在你的gitlab里点开一张图片,看看它的实际地址是怎样的?

@xiebruce
Copy link
Owner

已测试,gitlab.com的链接去掉那个-也能访问,所以我就去掉了,你更新一下代码就可以了。

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