progresses on #49

This commit is contained in:
Henrique Dias committed 2016-03-06 14:23:37 +00:00
1 parent bec1c3c510
commit b97ef80596
7 files changed
+78 -12

No files matched your search

+1 -1
View File
@@ -13,6 +13,6 @@ func ServeHTTP(w http.ResponseWriter, r *http.Request, c *config.Config) (int, e
case "POST":
return POST(w, r, c)
default:
return 400, errors.New("Invalid method.")
return http.StatusMethodNotAllowed, errors.New("Invalid method.")
}
}