bug: handle space in connection header correctly
This commit is contained in:
parent
605dba0521
commit
ae854b395f
@ -192,7 +192,7 @@ fn get_upgrade_type(headers: &HeaderMap) -> Option<String> {
|
||||
.to_str()
|
||||
.unwrap()
|
||||
.split(',')
|
||||
.any(|e| e.to_lowercase() == "upgrade")
|
||||
.any(|e| e.trim().to_lowercase() == "upgrade")
|
||||
})
|
||||
.unwrap_or(false)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user