trust any manualy set basic auth header

for now we will assume the module author knows what they are doing.
bug/bundler_fix
David Maloney 2013-02-11 13:06:26 -06:00
parent a43b902b5c
commit 0ccf7dd58a
1 changed files with 6 additions and 2 deletions

View File

@ -209,7 +209,9 @@ class Client
req << set_agent_header(c_ag)
if (c_auth.length > 0)
req << set_basic_auth_header(c_auth)
unless c_head['Authorization'].include? "Basic"
req << set_basic_auth_header(c_auth)
end
end
req << set_cookie_header(c_cook)
@ -315,7 +317,9 @@ class Client
req << set_agent_header(c_ag)
if (c_auth.length > 0)
req << set_basic_auth_header(c_auth)
unless c_head['Authorization'].include? "Basic"
req << set_basic_auth_header(c_auth)
end
end
req << set_cookie_header(c_cook)