fix(route): add debug json output and cookie support (#9539)

* fix(route): add debug json output and cookie support

* Update lib/v2/qbittorrent/news.js
This commit is contained in:
Tony
2022-04-14 20:19:33 -03:00
committed by GitHub
parent 48c0faa01c
commit edb6e5deec
8 changed files with 61 additions and 19 deletions

View File

@@ -118,5 +118,12 @@ module.exports = async (ctx) => {
title: `${user}/${repo}: ${typeDict[type].title} #${number} - ${issue.title}`,
link: issue.html_url,
item: items,
rateLimit: {
limit: parseInt(response.headers['x-ratelimit-limit']),
remaining: parseInt(response.headers['x-ratelimit-remaining']),
reset: parseDate(parseInt(response.headers['x-ratelimit-reset']) * 1000),
resoure: response.headers['x-ratelimit-resource'],
used: parseInt(response.headers['x-ratelimit-used']),
},
};
};