Skip to content

Commit 0fd99d1

Browse files
committed
chore: correctly translate HTTP verbs on the Rust kit
1 parent 691f70a commit 0fd99d1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

kits/rust/src/bindings.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ where
3030
{
3131
let method = match *req.method() {
3232
Method::GET => HttpMethod::Get,
33-
Method::POST => HttpMethod::Get,
34-
Method::PUT => HttpMethod::Get,
35-
Method::PATCH => HttpMethod::Get,
36-
Method::DELETE => HttpMethod::Get,
37-
Method::OPTIONS => HttpMethod::Get,
38-
Method::HEAD => HttpMethod::Get,
33+
Method::POST => HttpMethod::Post,
34+
Method::PUT => HttpMethod::Put,
35+
Method::PATCH => HttpMethod::Patch,
36+
Method::DELETE => HttpMethod::Delete,
37+
Method::OPTIONS => HttpMethod::Options,
38+
Method::HEAD => HttpMethod::Head,
3939
_ => HttpMethod::Get,
4040
};
4141

0 commit comments

Comments
 (0)