Added a PUT handler that copies the behavior of the POST handler. Fixes #139.

release-0.4
Andrew Hobden 2013-08-21 14:43:25 -07:00
parent 4adc17eb01
commit 4f436ae70a
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ func Multiplexer(w http.ResponseWriter, req *http.Request) error {
return GetHttpHandler(w, req)
case "POST":
return SetHttpHandler(w, req)
case "PUT":
return SetHttpHandler(w, req)
case "DELETE":
return DeleteHttpHandler(w, req)
default: