all repos — archive/homestead @ abd28f9633da4ac2f7fbdfd930c11a46b567b105

My future indieweb platform

style: use simpler syntax for setting response type

Alan Pearce
commit

abd28f9633da4ac2f7fbdfd930c11a46b567b105

parent

ab881e671747b3b1826524bb71ccb615254e3c4f

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M src/responders.jssrc/responders.js
@@ -37,7 +37,7 @@ }
module.exports = { home (ctx, config, postsStream) { - ctx.set('Content-Type', 'text/html') + ctx.type = 'html' ctx.body = templates .layout() .pipe(rheo())
@@ -50,7 +50,7 @@ .render()
}, post (ctx, config, post) { - ctx.set('Content-Type', 'text/html') + ctx.type = 'html' ctx.body = templates .layout() .pipe(rheo())
@@ -62,7 +62,7 @@ .render()
}, taxon (ctx, config, taxonItems) { - ctx.set('Content-Type', 'text/html') + ctx.type = 'html' ctx.body = templates .layout() .pipe(rheo())