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.
1 parent 4165546 commit 648c84aCopy full SHA for 648c84a
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