mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
rss: jinritoutiao keyword: fix Chinese encode
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user