rss: jinritoutiao keyword: fix Chinese encode
This commit is contained in:
parent
15f6c37064
commit
6dc8a360bc
|
|
@ -9,7 +9,7 @@ module.exports = async (ctx) => {
|
|||
url: `https://www.toutiao.com/search_content/?offset=0&format=json&keyword=${encodeURIComponent(keyword)}&autoload=true&count=20&cur_tab=1&from=search_tab`,
|
||||
headers: {
|
||||
'User-Agent': config.ua,
|
||||
Referer: `https://www.toutiao.com/search/?keyword=${keyword}`,
|
||||
Referer: `https://www.toutiao.com/search/?keyword=${encodeURIComponent(keyword)}`,
|
||||
},
|
||||
});
|
||||
let data = response.data.data;
|
||||
|
|
|
|||
Loading…
Reference in New Issue