Class: Mechanize::Chain::AuthHeaders
- Inherits:
-
Object
- Object
- Mechanize::Chain::AuthHeaders
- Defined in:
- lib/ntlm/mechanize.rb
Instance Method Summary collapse
Instance Method Details
#handle(ctx, params) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/ntlm/mechanize.rb', line 12 def handle(ctx, params) if @auth_hash[params[:uri].host] == :ntlm && @user && @password if @user.index('\\') domain, user = @user.split('\\', 2) end params[:request].ntlm_auth(user, domain, @password) end handle_without_ntlm(ctx, params) end |
#handle_without_ntlm ⇒ Object
9 |
# File 'lib/ntlm/mechanize.rb', line 9 alias handle_without_ntlm handle |