From a46b3193769f98543bc613fba0aa35b0db892d0f Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 7 Feb 2025 00:45:14 -0800 Subject: [PATCH] Use POST --- Changelog.md | 2 ++ src/main.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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?")), } } -- 2.47.2