Merge pull request #1925 from Aodi/main

fix 反向代理图片显示问题,url改为查询参数避免双斜杠的优化
This commit is contained in:
jxxghp 2024-04-19 19:37:29 +08:00 committed by GitHub
commit 4e7000efbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ from version import APP_VERSION
router = APIRouter()
@router.get("/img/{proxy}/{imgurl:path}", summary="图片代理")
@router.get("/img/{proxy}", summary="图片代理")
def get_img(imgurl: str, proxy: bool = False) -> Any:
"""
通过图片代理使用代理服务器