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