chore: remove unnecessary parts
This commit is contained in:
parent
9789c23dcf
commit
838de4a7dd
2 changed files with 0 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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"))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue