未验证 提交 887d4360 编写于 作者: C Cristian Dominguez 提交者: GitHub

Use HEAD req for isUrlOk check (#14994)

Co-authored-by: NCristian Dominguez <cristiand391@users.noreply.github.com>
上级 096c9a33
......@@ -14,7 +14,7 @@ export type RepoInfo = {
}
export async function isUrlOk(url: string): Promise<boolean> {
const res = await got(url).catch((e) => e)
const res = await got.head(url).catch((e) => e)
return res.statusCode === 200
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册