diff options
author | mr <mr@mrautenberg.de> | 2010-01-26 12:16:59 +0100 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2010-01-26 12:16:59 +0100 |
commit | 492f73257e6c87d84e4b25c49e4a392859d59b1c (patch) | |
tree | f2592f052b5ba410c869d5018fa914c08fc89b92 /lib/authorization.rb | |
parent | 2187b121ddb95a6ef5de59ac1c72427b4294d9be (diff) |
set 'Basic realm' to Opentox Ruby API Wrapper Auth
Diffstat (limited to 'lib/authorization.rb')
-rw-r--r-- | lib/authorization.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/authorization.rb b/lib/authorization.rb index 372d52b..4e4abe2 100644 --- a/lib/authorization.rb +++ b/lib/authorization.rb @@ -1,7 +1,7 @@ helpers do def protected! - response['WWW-Authenticate'] = %(Basic realm="Testing HTTP Auth") and \ + response['WWW-Authenticate'] = %(Basic realm="Opentox Ruby API Wrapper Auth") and \ throw(:halt, [401, "Not authorized\n"]) and \ return unless authorized? end |