uncomment basic auth mech
parent
bc6435e402
commit
ce7987eb99
|
|
@ -103,10 +103,11 @@ impl<'a> ApiPoll<'a> {
|
|||
let login = &creds.endpoint.login;
|
||||
let password = &creds.endpoint.password;
|
||||
let api_key = &creds.endpoint.api_key;
|
||||
// if !login.is_empty() && !password.is_empty() {
|
||||
|
||||
if !login.is_empty() && !password.is_empty() {
|
||||
// dbg!("kjgbkasgksjd");
|
||||
// req = req.basic_auth(login, Some(password));
|
||||
// }
|
||||
req = req.basic_auth(login, Some(password));
|
||||
}
|
||||
if !api_key.is_empty() {
|
||||
// req = req.bearer_auth(&api_key);
|
||||
// req = req.header("authorization", "bearer ");
|
||||
|
|
|
|||
Loading…
Reference in New Issue