fix: value of atomlink

This commit is contained in:
DIYgod
2019-08-13 01:02:51 +08:00
parent 3cc08fa5ed
commit aa2236e1f6

View File

@@ -57,7 +57,7 @@ module.exports = async (ctx, next) => {
lastBuildDate: new Date().toUTCString(),
updated: new Date().toISOString(),
ttl: routeTtl,
atomlink: ctx.request.header.host + ctx.request.path,
atomlink: ctx.request.href,
...ctx.state.data,
};
if (template) {