]> git.scottworley.com Git - gumdrone/commitdiff
Use POST
authorScott Worley <scottworley@scottworley.com>
Fri, 7 Feb 2025 08:45:14 +0000 (00:45 -0800)
committerScott Worley <scottworley@scottworley.com>
Fri, 7 Feb 2025 08:45:14 +0000 (00:45 -0800)
Changelog.md
src/main.rs

index f7a5cb911fef6f2a567d78bb1fc6297363696245..2ba2f83987dc71b859148d69021c21bd18683fde 100644 (file)
@@ -1,5 +1,7 @@
 # Unreleased
 
 # Unreleased
 
+Use POST
+
 
 # 0.1.1 (February 06, 2025)
 
 
 # 0.1.1 (February 06, 2025)
 
index 16f7782598a63043f651c697f60b632c7eeba8f6..6e0b6a1552bc87bc6147135419455b264fb2c7c6 100644 (file)
@@ -80,7 +80,7 @@ fn respond(request: &cgi::Request) -> Result<cgi::Response, cgi::Response> {
     match *request.method() {
         cgi::http::Method::HEAD => prompt_for_order(request).map(strip_body),
         cgi::http::Method::GET => prompt_for_order(request),
     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?")),
     }
 }
         _ => Err(cgi::text_response(405, "Huh?")),
     }
 }