diff options
author | Alan Pearce | 2017-06-24 23:39:03 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-24 23:39:03 +0200 |
commit | abd28f9633da4ac2f7fbdfd930c11a46b567b105 (patch) | |
tree | 89068f7cb1ca7444c8a986260f494741f4271c37 /src | |
parent | ab881e671747b3b1826524bb71ccb615254e3c4f (diff) | |
download | homestead-abd28f9633da4ac2f7fbdfd930c11a46b567b105.tar.lz homestead-abd28f9633da4ac2f7fbdfd930c11a46b567b105.tar.zst homestead-abd28f9633da4ac2f7fbdfd930c11a46b567b105.zip |
style: use simpler syntax for setting response type
Diffstat (limited to 'src')
-rw-r--r-- | src/responders.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/responders.js b/src/responders.js index a11e598..b6354a5 100644 --- a/src/responders.js +++ b/src/responders.js @@ -37,7 +37,7 @@ function showPage (name) { 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 @@ module.exports = { }, post (ctx, config, post) { - ctx.set('Content-Type', 'text/html') + ctx.type = 'html' ctx.body = templates .layout() .pipe(rheo()) @@ -62,7 +62,7 @@ module.exports = { }, taxon (ctx, config, taxonItems) { - ctx.set('Content-Type', 'text/html') + ctx.type = 'html' ctx.body = templates .layout() .pipe(rheo()) |