uncomment basic auth mech

pull/6/head
prplV 2025-02-18 13:54:26 +03:00
parent bc6435e402
commit ce7987eb99
1 changed files with 5 additions and 4 deletions

View File

@ -103,10 +103,11 @@ impl<'a> ApiPoll<'a> {
let login = &creds.endpoint.login; let login = &creds.endpoint.login;
let password = &creds.endpoint.password; let password = &creds.endpoint.password;
let api_key = &creds.endpoint.api_key; let api_key = &creds.endpoint.api_key;
// if !login.is_empty() && !password.is_empty() {
if !login.is_empty() && !password.is_empty() {
// dbg!("kjgbkasgksjd"); // dbg!("kjgbkasgksjd");
// req = req.basic_auth(login, Some(password)); req = req.basic_auth(login, Some(password));
// } }
if !api_key.is_empty() { if !api_key.is_empty() {
// req = req.bearer_auth(&api_key); // req = req.bearer_auth(&api_key);
// req = req.header("authorization", "bearer "); // req = req.header("authorization", "bearer ");