From 6c1489fc2ff6b0fde23852cb2e9c8277a1875c83 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 19 Dec 2013 16:53:48 +0000 Subject: [PATCH] Remove duplicate header And provide a slightly more informative prompt --- core/modules/commands/server.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/modules/commands/server.js b/core/modules/commands/server.js index df0a84acc..47071a044 100644 --- a/core/modules/commands/server.js +++ b/core/modules/commands/server.js @@ -95,9 +95,8 @@ SimpleServer.prototype.listen = function(port) { if(username && password) { // Check they match if(self.checkCredentials(request,username,password) !== "ALLOWED") { - response.setHeader("WWW-Authenticate", 'Basic realm="Admin Area"'); response.writeHead(401,"Authentication required",{ - "WWW-Authenticate": 'Basic realm="TiddlyWiki5"' + "WWW-Authenticate": 'Basic realm="Please provide your username and password to login to TiddlyWiki5"' }); response.end(); return;