Skip to content

Commit

Permalink
rss: jinritoutiao keyword: fix Chinese encode
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed May 23, 2018
1 parent 15f6c37 commit 6dc8a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/jinritoutiao/keyword.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6dc8a36

Please sign in to comment.