fix: get upgrade type as lowercase for cases where request and response are not consistent (ex: ttyd)

This commit is contained in:
Nicolas Pernoud 2022-10-14 11:18:17 +02:00
parent e73a76600c
commit 8dc6024395

View File

@ -93,7 +93,7 @@ fn get_upgrade_type(headers: &HeaderMap) -> Option<String> {
upgrade_value.to_str().unwrap().to_owned() 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());
} }
} }