mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
@@ -36,9 +36,15 @@ module.exports = async (ctx) => {
|
||||
return Promise.resolve(JSON.parse(cache));
|
||||
}
|
||||
|
||||
const response = await got.get(link);
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: link,
|
||||
headers: {
|
||||
Referer: host,
|
||||
},
|
||||
});
|
||||
|
||||
if (response.request.res.connection._host === 'ids.hit.edu.cn') {
|
||||
if (response.req._headers.host === 'ids.hit.edu.cn') {
|
||||
const single = {
|
||||
pubDate: new Date(
|
||||
link
|
||||
|
||||
Reference in New Issue
Block a user