chore: remove unnecessary parts

This commit is contained in:
Jun Kurihara 2023-03-15 17:28:31 +09:00
commit 838de4a7dd
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
2 changed files with 0 additions and 2 deletions

View file

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

View file

@ -47,7 +47,6 @@ impl<B> ParseHost for Request<B> {
} else { } else {
// v4 address or hostname // v4 address or hostname
m.split(|colon| colon == &b':') m.split(|colon| colon == &b':')
.into_iter()
.next() .next()
.ok_or(RpxyError::Request("Invalid Host")) .ok_or(RpxyError::Request("Invalid Host"))
} }