From 8dc6024395e30ab70f495620c110a128a89fec9f Mon Sep 17 00:00:00 2001 From: Nicolas Pernoud Date: Fri, 14 Oct 2022 11:18:17 +0200 Subject: [PATCH] fix: get upgrade type as lowercase for cases where request and response are not consistent (ex: ttyd) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index ef33424..e2275d6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -93,7 +93,7 @@ fn get_upgrade_type(headers: &HeaderMap) -> Option { upgrade_value.to_str().unwrap().to_owned() ); - return Some(upgrade_value.to_str().unwrap().to_owned()); + return Some(upgrade_value.to_str().unwrap().to_lowercase().to_owned()); } }