Skip to content

Commit

Permalink
Upgrade base64 to 0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sorz committed Mar 3, 2023
1 parent 0bfac3f commit d03b9c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
8 changes: 1 addition & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ bytes = "1"
zip = { version = "0.6", optional = true, default-features = false, features = [
"deflate"
] }
base64 = "0.20"
base64 = "0.21"

[target.'cfg(target_os = "linux")'.dependencies]
libc = "0.2"
Expand Down
3 changes: 2 additions & 1 deletion src/proxy/http.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use base64::prelude::{Engine, BASE64_STANDARD};
use httparse::{Response, Status, EMPTY_HEADER};
use std::io::{self, ErrorKind};
use std::net::IpAddr;
Expand Down Expand Up @@ -110,7 +111,7 @@ fn build_request(addr: &Destination, user_pass_auth: &Option<UserPassAuthCredent
username = user_pass_auth.username,
password = user_pass_auth.password
);
let basic_auth = base64::encode(&auth);
let basic_auth = BASE64_STANDARD.encode(&auth);
format!(
"CONNECT {host} HTTP/1.1\r\n\
Host: {host}\r\n\
Expand Down

0 comments on commit d03b9c9

Please sign in to comment.