Skip to content

Commit fa25ce2

Browse files
committed
fix(cli) rbspy basic auth
1 parent bd894ab commit fa25ce2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyroscope_cli/src/core/profiler.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ impl Profiler {
9696
// There must be a better way to do this, hopefully as clap supports Option<String>
9797
if auth_token.len() > 0 {
9898
builder = builder.auth_token(auth_token);
99+
} else if basic_auth_username != "" && basic_auth_password != "" {
100+
builder = builder.basic_auth(basic_auth_username, basic_auth_password);
99101
}
100102

101103
builder.backend(backend).tags(tags).build()?

0 commit comments

Comments
 (0)