mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-04 10:20:26 +01:00
chore(*): update the dependencies
This commit is contained in:
@@ -11,18 +11,19 @@ license = "MIT OR Apache-2.0"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
base64 = "0.10"
|
||||
base64 = "0.11"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
http = "0.2"
|
||||
hyper = "0.13.1"
|
||||
hyper-rustls = "0.19"
|
||||
log = "0.4"
|
||||
rustls = "0.16"
|
||||
seahash = "3.0.6"
|
||||
seahash = "4"
|
||||
serde = {version = "1.0", features = ["derive"]}
|
||||
serde_json = "1.0"
|
||||
tokio = { version = "0.2", features = ["fs", "macros", "io-std", "time"] }
|
||||
url = "1"
|
||||
url = "2"
|
||||
percent-encoding = "2"
|
||||
|
||||
[dev-dependencies]
|
||||
httptest = "0.11.1"
|
||||
|
||||
@@ -13,7 +13,9 @@ use std::sync::{Arc, Mutex};
|
||||
use hyper::header;
|
||||
use tokio::sync::oneshot;
|
||||
use url::form_urlencoded;
|
||||
use url::percent_encoding::{percent_encode, QUERY_ENCODE_SET};
|
||||
use percent_encoding::{percent_encode, AsciiSet, CONTROLS};
|
||||
|
||||
const QUERY_SET: AsciiSet = CONTROLS.add(b' ').add(b'"').add(b'#').add(b'<').add(b'>');
|
||||
|
||||
const OOB_REDIRECT_URI: &str = "urn:ietf:wg:oauth:2.0:oob";
|
||||
|
||||
@@ -42,7 +44,7 @@ where
|
||||
]
|
||||
.into_iter()
|
||||
.fold(url, |mut u, param| {
|
||||
u.push_str(&percent_encode(param.as_ref(), QUERY_ENCODE_SET).to_string());
|
||||
u.push_str(&percent_encode(param.as_ref(), &QUERY_SET).to_string());
|
||||
u
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user