diff --git a/Cargo.lock b/Cargo.lock index a16d441..9101338 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -73,12 +73,6 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" -[[package]] -name = "base64" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ea22880d78093b0cbe17c89f64a7d457941e65759157ec6cb31a31d652b05e5" - [[package]] name = "base64" version = "0.21.0" @@ -784,7 +778,7 @@ dependencies = [ name = "moproxy" version = "0.3.12" dependencies = [ - "base64 0.20.0", + "base64 0.21.0", "bytes", "clap", "futures-core", diff --git a/Cargo.toml b/Cargo.toml index 20b4d53..b589e67 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/proxy/http.rs b/src/proxy/http.rs index b769664..3ae8b02 100644 --- a/src/proxy/http.rs +++ b/src/proxy/http.rs @@ -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; @@ -110,7 +111,7 @@ fn build_request(addr: &Destination, user_pass_auth: &Option