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()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.split(',')
|
.split(',')
|
||||||
.any(|e| e.to_lowercase() == "upgrade")
|
.any(|e| e.trim().to_lowercase() == "upgrade")
|
||||||
})
|
})
|
||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user