mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: #762
This commit is contained in:
@@ -7,8 +7,8 @@ export const GetProxyHandler: RequestHandler = async (req, res) => {
|
||||
if (url && typeof url === 'string') {
|
||||
url = decodeURIComponent(url);
|
||||
const responseText = await RequestUtil.HttpGetText(url);
|
||||
res.send(sendSuccess(res, responseText));
|
||||
return sendSuccess(res, responseText);
|
||||
} else {
|
||||
res.send(sendError(res, 'url参数不合法'));
|
||||
return sendError(res, 'url参数不合法');
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user