summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-06-24 23:39:03 +0200
committerAlan Pearce2017-06-24 23:39:03 +0200
commitabd28f9633da4ac2f7fbdfd930c11a46b567b105 (patch)
tree89068f7cb1ca7444c8a986260f494741f4271c37
parentab881e671747b3b1826524bb71ccb615254e3c4f (diff)
downloadhomestead-abd28f9633da4ac2f7fbdfd930c11a46b567b105.tar.lz
homestead-abd28f9633da4ac2f7fbdfd930c11a46b567b105.tar.zst
homestead-abd28f9633da4ac2f7fbdfd930c11a46b567b105.zip
style: use simpler syntax for setting response type
-rw-r--r--src/responders.js6
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())