fix 反向代理图片显示问题,url改为查询参数避免双斜杠的优化
This commit is contained in:
parent
f6222122c0
commit
fb0018dda6
@ -26,7 +26,7 @@ from version import APP_VERSION
|
|||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
|
|
||||||
@router.get("/img/{proxy}/{imgurl:path}", summary="图片代理")
|
@router.get("/img/{proxy}", summary="图片代理")
|
||||||
def get_img(imgurl: str, proxy: bool = False) -> Any:
|
def get_img(imgurl: str, proxy: bool = False) -> Any:
|
||||||
"""
|
"""
|
||||||
通过图片代理(使用代理服务器)
|
通过图片代理(使用代理服务器)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user