We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9127b5f + 648c84a commit 18b86dfCopy full SHA for 18b86df
src/method.rs
@@ -70,7 +70,7 @@ impl FromStr for Method {
70
type Err = crate::Error;
71
72
fn from_str(s: &str) -> Result<Self, Self::Err> {
73
- match s {
+ match &*s.to_ascii_uppercase() {
74
"GET" => Ok(Self::Get),
75
"HEAD" => Ok(Self::Head),
76
"POST" => Ok(Self::Post),
0 commit comments