diff --git a/src/method.rs b/src/method.rs index 39c1c397..0d239891 100644 --- a/src/method.rs +++ b/src/method.rs @@ -70,7 +70,7 @@ impl FromStr for Method { type Err = crate::Error; fn from_str(s: &str) -> Result { - match s { + match &*s.to_ascii_uppercase() { "GET" => Ok(Self::Get), "HEAD" => Ok(Self::Head), "POST" => Ok(Self::Post),