chore: refactor

This commit is contained in:
Jun Kurihara 2025-01-11 13:21:54 +09:00
commit 3e7240e4ca
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
2 changed files with 2 additions and 2 deletions

View file

@ -272,7 +272,7 @@ pub(super) fn extract_upgrade(headers: &HeaderMap) -> Option<String> {
.to_str()
.unwrap_or("")
.split(',')
.any(|w| w.trim().to_ascii_lowercase() == header::UPGRADE.as_str().to_ascii_lowercase())
.any(|w| w.trim().eq_ignore_ascii_case(header::UPGRADE.as_str()))
{
if let Some(u) = headers.get(header::UPGRADE) {
if let Ok(m) = u.to_str() {