mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: atomlink href (#2858)
This commit is contained in:
@@ -57,7 +57,7 @@ module.exports = async (ctx, next) => {
|
||||
lastBuildDate: new Date().toUTCString(),
|
||||
updated: new Date().toISOString(),
|
||||
ttl: routeTtl,
|
||||
atomlink: ctx.request.path,
|
||||
atomlink: ctx.request.href,
|
||||
...ctx.state.data,
|
||||
};
|
||||
if (template) {
|
||||
|
||||
@@ -33,6 +33,8 @@ describe('template', () => {
|
||||
const parsed2 = await parser.parseString(response2.text);
|
||||
delete parsed1.lastBuildDate;
|
||||
delete parsed2.lastBuildDate;
|
||||
delete parsed1.feedUrl;
|
||||
delete parsed2.feedUrl;
|
||||
expect(parsed2).toMatchObject(parsed1);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user