671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
|
# File 'lib/httpclient.rb', line 671
def filter_response(req, res)
command = nil
uri = req..request_uri
if res.status == HTTP::Status::PROXY_AUTHENTICATE_REQUIRED
if challenge = (res, 'proxy-authenticate')
challenge.each do |scheme, param_str|
@authenticator.each do |auth|
if scheme.downcase == auth.scheme.downcase
challengeable = auth.challenge(uri, param_str)
command = :retry if challengeable
end
end
end
end
end
command
end
|