mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: weibo timeline response cache
This commit is contained in:
@@ -73,6 +73,9 @@ module.exports = async (ctx) => {
|
||||
const { app_key = '', redirect_url = ctx.request.origin + '/weibo/timeline/0' } = config.weibo;
|
||||
|
||||
ctx.status = 302;
|
||||
ctx.set({
|
||||
'Cache-Control': 'no-cache',
|
||||
});
|
||||
ctx.redirect(`https://api.weibo.com/oauth2/authorize?client_id=${app_key}&redirect_uri=${redirect_url}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user