Skip to content

Commit

Permalink
Use PUT verb for function updates.
Browse files Browse the repository at this point in the history
As discussed in openfaas/faas#208, this commit switches the verb used
for updates from the non-HTTP UPDATE to PUT.

Signed-off-by: John McCabe <[email protected]>
  • Loading branch information
johnmccabe authored and alexellis committed Sep 27, 2017
1 parent 0f97200 commit 0622394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func DeployFunction(fprocess string, gateway string, functionName string, image
method := "POST"
// "application/json"
if update {
method = "UPDATE"
method = "PUT"
}

request, _ = http.NewRequest(method, gateway+"/system/functions", reader)
Expand Down

0 comments on commit 0622394

Please sign in to comment.