diff --git a/twilight-gateway/Cargo.toml b/twilight-gateway/Cargo.toml index 12277b0c5e..92a8b38f7a 100644 --- a/twilight-gateway/Cargo.toml +++ b/twilight-gateway/Cargo.toml @@ -21,7 +21,7 @@ futures-sink = { default-features = false, features = ["std"], version = "0.3" } serde = { default-features = false, features = ["derive"], version = "1" } serde_json = { default-features = false, features = ["std"], version = "1" } tokio = { default-features = false, features = ["net", "rt", "sync", "time"], version = "1.19" } -tokio-websockets = { default-features = false, features = ["client", "fastrand", "sha1_smol", "simd"], version = "0.10" } +tokio-websockets = { default-features = false, features = ["client", "fastrand", "sha1_smol", "simd"], version = "0.11" } tracing = { default-features = false, features = ["std", "attributes"], version = "0.1" } twilight-gateway-queue = { default-features = false, path = "../twilight-gateway-queue", version = "0.16.0-rc.1" } twilight-model = { default-features = false, path = "../twilight-model", version = "0.16.0-rc.1" } diff --git a/twilight-lavalink/Cargo.toml b/twilight-lavalink/Cargo.toml index fe69404a45..d99536f96d 100644 --- a/twilight-lavalink/Cargo.toml +++ b/twilight-lavalink/Cargo.toml @@ -20,7 +20,7 @@ http = { default-features = false, version = "1" } serde = { default-features = false, features = ["derive", "std"], version = "1" } serde_json = { default-features = false, features = ["std"], version = "1" } tokio = { default-features = false, features = ["macros", "net", "rt", "sync", "time"], version = "1.0" } -tokio-websockets = { default-features = false, features = ["client", "fastrand", "sha1_smol", "simd"], version = "0.10" } +tokio-websockets = { default-features = false, features = ["client", "fastrand", "sha1_smol", "simd"], version = "0.11" } tracing = { default-features = false, features = ["std", "attributes"], version = "0.1" } twilight-model = { default-features = false, path = "../twilight-model", version = "0.16.0-rc.1" } diff --git a/twilight-lavalink/src/node.rs b/twilight-lavalink/src/node.rs index 154ed7bb29..bf2408ecca 100644 --- a/twilight-lavalink/src/node.rs +++ b/twilight-lavalink/src/node.rs @@ -618,16 +618,20 @@ fn connect_request(state: &NodeConfig) -> Result { source: Some(Box::new(source)), })? .add_header(AUTHORIZATION, state.authorization.parse().unwrap()) + .expect("allowed header") .add_header( HeaderName::from_static("user-id"), state.user_id.get().into(), - ); + ) + .expect("allowed header"); if state.resume.is_some() { - builder = builder.add_header( - HeaderName::from_static("resume-key"), - state.address.to_string().parse().unwrap(), - ); + builder = builder + .add_header( + HeaderName::from_static("resume-key"), + state.address.to_string().parse().unwrap(), + ) + .expect("allowed header"); } Ok(builder)