Remove junk added earlier

i added junk to tasos' class when we were going to attempt this a
different way. housekeeping to clean it up
bug/bundler_fix
David Maloney 2013-02-04 13:13:08 -06:00
parent 8d013d1034
commit 0c57026065
1 changed files with 0 additions and 17 deletions

View File

@ -148,23 +148,6 @@ class Auxiliary::Web::HTTP
while rlimit >= 0
rlimit -= 1
res = _request( url, opts )
if res.code == 401 and res.headers['WWW-Authenticate'] and opts['username']
if res.headers['WWW-Authenticate'].include? 'Basic'
opts['password']||= ''
opts['basic_auth'] = opts['username'] + ":" + opts['password']
res = _request( url, opts )
elsif res.headers['WWW-Authenticate'].include? 'Digest'
opts['DigestAuthUser'] = opts['username']
opts['DigestAuthPassword'] = opts['password']
res = send_digest_request_cgi(opts,timeout)
elsif res.headers['WWW-Authenticate'].include? "Negotiate"
opts['provider'] = 'Negotiate'
res = send_request_auth_negotiate(opts,timeout)
elsif res.headers['WWW-Authenticate'].include? "NTLM"
opts['provider'] = 'NTLM'
res = send_request_auth_negotiate(opts,timeout)
end
end
return res if !opts[:follow_redirect] || !url = res.headers['location']
end
nil