aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/method.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-05 02:57:37 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-05 02:57:37 +0200
commit6de0a5e827b0b18f589c28f489b4ff88169f156c (patch)
treecc6923484b77b5654fe1ca09bf6694fda7a894a2 /src/encoding/method.rs
parent384ddd782b989218ceb55b7147aa8698425d1464 (diff)
downloadsip-rs-6de0a5e827b0b18f589c28f489b4ff88169f156c.tar
sip-rs-6de0a5e827b0b18f589c28f489b4ff88169f156c.tar.bz2
sip-rs-6de0a5e827b0b18f589c28f489b4ff88169f156c.tar.zst
this wont work
Diffstat (limited to 'src/encoding/method.rs')
-rw-r--r--src/encoding/method.rs6
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"),