X-Git-Url: http://git.scottworley.com/gumdrone/blobdiff_plain/448eff6226a868741864dea30bb9b67e8d73c9d3..a46b3193769f98543bc613fba0aa35b0db892d0f:/src/main.rs?ds=inline 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?")), } }