Skip to content

Commit

Permalink
fix: only basic auth for rdm
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Nov 4, 2023
1 parent 47ffef3 commit 1d246d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/src/utils/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub async fn send_api_req(
let req = if let Some(api_key) = project.api_key {
if let Some((username, password)) = api_key.split_once(":") {
let (username, password) = (username.trim(), password.trim());
if *scanner_type == ScannerType::Unown {
if *scanner_type == ScannerType::Unown || !project.scanner {
req.get(endpoint).header(username, password)
} else {
req.get(endpoint).basic_auth(username, Some(password))
Expand Down

0 comments on commit 1d246d8

Please sign in to comment.