From 83b959d7043b7a9d6e7e76ba739434815c06f094 Mon Sep 17 00:00:00 2001 From: Laam Pui Date: Tue, 15 Dec 2020 19:24:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8A=E6=B5=B7=E7=AB=8B=E4=BF=A1?= =?UTF-8?q?=E4=BC=9A=E8=AE=A1=E9=87=91=E8=9E=8D=E5=AD=A6=E9=99=A2=20HTTPS?= =?UTF-8?q?=20(#6446)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/universities/slu/utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/routes/universities/slu/utils.js b/lib/routes/universities/slu/utils.js index a0d6fdf73e..0f73faa9e5 100644 --- a/lib/routes/universities/slu/utils.js +++ b/lib/routes/universities/slu/utils.js @@ -7,6 +7,9 @@ module.exports = { const response = await got({ method: 'get', url, + https: { + rejectUnauthorized: false, + }, }); const $ = cheerio.load(response.data); // 获取列表 @@ -40,6 +43,9 @@ module.exports = { const detail_response = await got({ method: 'get', url: href, + https: { + rejectUnauthorized: false, + }, }); const $ = cheerio.load(detail_response.data); const title = $('title').text();