diff options
Diffstat (limited to 'src/encoding/method.rs')
-rw-r--r-- | src/encoding/method.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/encoding/method.rs b/src/encoding/method.rs index 73829b0..6d38cab 100644 --- a/src/encoding/method.rs +++ b/src/encoding/method.rs @@ -6,7 +6,7 @@ pub enum Method { Register, Invite, Ack, - Option, + Options, Cancel, Bye, } @@ -17,7 +17,7 @@ impl Display for Method { Method::Register => "REGISTER", Method::Invite => "INVITE", Method::Ack => "ACK", - Method::Option => "OPTION", + Method::Options => "OPTIONS", Method::Cancel => "CANCEL", Method::Bye => "BYE", }) @@ -30,7 +30,7 @@ impl FromStr for Method { "REGISTER" => Method::Register, "INVITE" => Method::Invite, "ACK" => Method::Ack, - "OPTION" => Method::Option, + "OPTIONS" => Method::Options, "CANCEL" => Method::Cancel, "BYE" => Method::Bye, _ => bail!("unknown method"), |