mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-02 18:18:06 +08:00
fix(route): github recent issues (#9473)
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = async (ctx) => {
|
||||
const host = `https://github.com/${user}/${repo}/pulls`;
|
||||
const url = `https://api.github.com/repos/${user}/${repo}/pulls`;
|
||||
|
||||
const headers = {};
|
||||
const headers = { Accept: 'application/vnd.github.v3+json' };
|
||||
if (config.github && config.github.access_token) {
|
||||
headers.Authorization = `token ${config.github.access_token}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user