public
Fork of bmizerany/sinatra
Description: Classy web-development dressed in a DSL
Homepage: http://sinatrarb.com
Clone URL: git://github.com/Chrononaut/sinatra.git
Search Repo:
less code, more style!
Chrononaut (author)
Sun May 04 17:16:00 -0700 2008
commit  5d8859baa5d34bd1e1d3794ffd2ff321052ee213
tree    9344c9ad8f2dfee851818bf5eed611428cc183a0
parent  4382a49b33f65b7e6367785d58b8cf4bddfcee51
...
610
611
612
613
614
615
 
616
617
618
...
610
611
612
 
613
 
614
615
616
617
0
@@ -610,9 +610,8 @@
0
       end
0
       
0
       def request_http_basic_authentication(realm = "Application")
0
- status(401)
0
         header("WWW-Authenticate" => 'Basic realm="%s"' % realm)
0
- throw :halt, "HTTP Basic: Access denied.\n"
0
+ throw :halt, [ 401, "HTTP Basic: Access denied.\n" ]
0
       end
0
       
0
     end

Comments

  • bmizerany Tue May 06 18:49:19 -0700 2008

    awesome ;)