Skip to content

Commit

Permalink
chore: correctly translate HTTP verbs on the Rust kit
Browse files Browse the repository at this point in the history
  • Loading branch information
ereslibre committed Oct 25, 2023
1 parent 691f70a commit 0fd99d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kits/rust/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ where
{
let method = match *req.method() {
Method::GET => HttpMethod::Get,
Method::POST => HttpMethod::Get,
Method::PUT => HttpMethod::Get,
Method::PATCH => HttpMethod::Get,
Method::DELETE => HttpMethod::Get,
Method::OPTIONS => HttpMethod::Get,
Method::HEAD => HttpMethod::Get,
Method::POST => HttpMethod::Post,
Method::PUT => HttpMethod::Put,
Method::PATCH => HttpMethod::Patch,
Method::DELETE => HttpMethod::Delete,
Method::OPTIONS => HttpMethod::Options,
Method::HEAD => HttpMethod::Head,
_ => HttpMethod::Get,
};

Expand Down

0 comments on commit 0fd99d1

Please sign in to comment.