From: Scott Worley Date: Fri, 7 Feb 2025 08:45:14 +0000 (-0800) Subject: Use POST X-Git-Tag: v0.1.2~1 X-Git-Url: http://git.scottworley.com/gumdrone/commitdiff_plain/a46b3193769f98543bc613fba0aa35b0db892d0f?hp=448eff6226a868741864dea30bb9b67e8d73c9d3 Use POST --- diff --git a/Changelog.md b/Changelog.md index f7a5cb9..2ba2f83 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,7 @@ # Unreleased +Use POST + # 0.1.1 (February 06, 2025) diff --git a/src/main.rs b/src/main.rs index 16f7782..6e0b6a1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,7 +80,7 @@ fn respond(request: &cgi::Request) -> Result { match *request.method() { cgi::http::Method::HEAD => prompt_for_order(request).map(strip_body), cgi::http::Method::GET => prompt_for_order(request), - cgi::http::Method::PUT => record_order(request), + cgi::http::Method::POST => record_order(request), _ => Err(cgi::text_response(405, "Huh?")), } }