Pārlūkot izejas kodu

Add header for redis

Zane Kansil 10 gadi atpakaļ
vecāks
revīzija
445c25d2b1
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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', {
         reply.view('fortunes', {
           fortunes: fortunes
           fortunes: fortunes
         })
         })
-          .header('Content-Type', 'text/html');
+          .header('Content-Type', 'text/html')
+          .header('Server', 'hapi');
       })
       })
       .catch(function (err) {
       .catch(function (err) {
         process.exit(1);
         process.exit(1);