X-Git-Url: http://git.scottworley.com/gumdrone/blobdiff_plain/9f98627507df5e62be0c6b96f481d9c67c288a85..HEAD:/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?")), } }