mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
change update from PUT method to PATCH (#440)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user