Przeglądaj źródła

Add header for redis

Zane Kansil 10 lat temu
rodzic
commit
445c25d2b1
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      frameworks/JavaScript/hapi/handlers/redis.js

+ 2 - 1
frameworks/JavaScript/hapi/handlers/redis.js

@@ -103,7 +103,8 @@ module.exports = {
         reply.view('fortunes', {
           fortunes: fortunes
         })
-          .header('Content-Type', 'text/html');
+          .header('Content-Type', 'text/html')
+          .header('Server', 'hapi');
       })
       .catch(function (err) {
         process.exit(1);