Skip to content

Commit 03eb507

Browse files
committed
fix: 修复漏洞
1 parent 75d4d0e commit 03eb507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/storages/alist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def express(self, hash: str, request: web.Request, response) -> Dict[str,
132132
await response.prepare(request)
133133
return {"bytes": 0, "hits": 0}
134134
try:
135-
response = web.HTTPFound(data["raw_url"])
135+
response = web.HTTPFound(data["data"]["raw_url"])
136136
response.headers["x-bmclapi-hash"] = hash
137137
await response.prepare(request)
138138
return {"bytes": data["size"], "hits": 1}

0 commit comments

Comments
 (0)