From db5fca6b49ea989526fd13bf869e6d3e0629c8d5 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Mon, 19 Apr 2010 17:11:31 +0200 Subject: [PATCH] change header for basic authentication using the patch by zcrar70. Fixes #1021 --- lib/login_system.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/login_system.rb b/lib/login_system.rb index 4ad9312c..e3c5a779 100644 --- a/lib/login_system.rb +++ b/lib/login_system.rb @@ -189,7 +189,7 @@ module LoginSystem end def basic_auth_denied - response.headers["Status"] = "Unauthorized" + response.headers["Status"] = "401 Unauthorized" response.headers["WWW-Authenticate"] = "Basic realm=\"'Tracks Login Required'\"" render :text => "401 Unauthorized: You are not authorized to interact with Tracks.", :status => 401 end