Skip to content

Commit

Permalink
fix: 修复漏洞
Browse files Browse the repository at this point in the history
  • Loading branch information
SilianZ committed Dec 29, 2024
1 parent 75d4d0e commit 03eb507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/storages/alist.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def express(self, hash: str, request: web.Request, response) -> Dict[str,
await response.prepare(request)
return {"bytes": 0, "hits": 0}
try:
response = web.HTTPFound(data["raw_url"])
response = web.HTTPFound(data["data"]["raw_url"])
response.headers["x-bmclapi-hash"] = hash
await response.prepare(request)
return {"bytes": data["size"], "hits": 1}
Expand Down

0 comments on commit 03eb507

Please sign in to comment.