summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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())