change update from PUT method to PATCH (#440)

This commit is contained in:
Pedro Nasser
2016-12-14 14:22:44 -02:00
committed by C Cirello
parent 3dc12d9f55
commit 4d7dde3486
5 changed files with 8 additions and 8 deletions

View File

@@ -66,7 +66,7 @@ func (s *Server) handleRequest(c *gin.Context, enqueue models.Enqueue) {
var err error
var payload io.Reader
if c.Request.Method == "POST" || c.Request.Method == "PUT" {
if c.Request.Method == "POST" {
payload = c.Request.Body
// Load complete body and close
defer func() {