Skip to content

Commit

Permalink
Ignore auth type
Browse files Browse the repository at this point in the history
commit-id:7d950008
  • Loading branch information
vlad-ivanov-name committed May 21, 2024
1 parent aea43f9 commit 5543fb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions josh-proxy/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ impl Handle {
.ok_or_else(|| josh::josh_error("no auth found"))?;

let line = String::from_utf8(line)?;
let token = line
.strip_prefix("Basic ")
let (_, token) = line
.split_once(' ')
.ok_or_else(|| josh::josh_error("Unsupported auth type"))?;

let decoded = BASE64.decode(token)?;
Expand Down

0 comments on commit 5543fb6

Please sign in to comment.