Class: RhetButler::Web::SelectiveAuth
- Inherits:
-
Rack::Auth::Basic
- Object
- Rack::Auth::Basic
- RhetButler::Web::SelectiveAuth
- Defined in:
- lib/rhet-butler/web/main-app.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rhet-butler/web/main-app.rb', line 14 def call(env) #XXX This is to work around a Chrome bug: #https://code.google.com/p/chromium/issues/detail?id=123862 #ok #When fixed upstream, this'll come out and we'll stop supporting old #versions of Chrome. #As is, under SSL this is kinda secure (i.e. not at all) because the #WS details are secret if /^http/ =~ env["rack.url_scheme"] and env["HTTP_UPGRADE"] != "websocket" super else @app.call(env) end end |