Skip to content

Commit fec6e41

Browse files
committed
fix: 修复漏洞
1 parent a186814 commit fec6e41

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/storages/alist.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,10 @@ async def express(self, hash: str, request: web.Request, response) -> Dict[str,
130130
try:
131131
response = web.HTTPFound(data["data"]["raw_url"])
132132
response.headers["x-bmclapi-hash"] = hash
133-
await response.prepare(request)
133+
logger.debug(response)
134134
return {"bytes": data["data"]["size"], "hits": 1}
135135
except Exception as e:
136136
response = web.HTTPError(text=e)
137-
await response.prepare(request)
138137
logger.debug(e)
139138
return {"bytes": 0, "hits": 0}
140139

0 commit comments

Comments
 (0)