change header for basic authentication using the patch by zcrar70. Fixes #1021

This commit is contained in:
Reinier Balt 2010-04-19 17:11:31 +02:00
parent 33af53c313
commit db5fca6b49

View file

@ -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