From 87f60198b2bcbf91d990e6ac25810ce8cdda7be9 Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Wed, 20 Feb 2019 03:03:24 +0000 Subject: [PATCH] fix: add missing link (#1586) --- lib/routes/aisixiang/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/routes/aisixiang/utils.js b/lib/routes/aisixiang/utils.js index 05bed0a030..3c1bb1e4f7 100644 --- a/lib/routes/aisixiang/utils.js +++ b/lib/routes/aisixiang/utils.js @@ -14,8 +14,8 @@ const ProcessFeed = async (link) => { }); const description = JSON.parse(iconv.decode(response.data, 'gbk')).content; - - response = await axios.get(`http://www.aisixiang.com${link}`, { + link = `http://www.aisixiang.com${link}`; + response = await axios.get(link, { responseType: 'arraybuffer', }); @@ -38,6 +38,7 @@ const ProcessFeed = async (link) => { author: title.split('/')[0] || '', description, pubDate, + link, }; };