Adds support for additional PATCH HTTP verb

Full list of supported verbs is now supported: "GET", "POST", "PUT",
"PATCH", "DELETE"

Relates to: #openfaas/faas/issues/815

Signed-off-by: Edward Wilde <ewilde@gmail.com>
This commit is contained in:
Edward Wilde
2018-08-22 08:14:26 +01:00
committed by Alex Ellis
parent 979cb51619
commit e9f5be107b

View File

@ -299,6 +299,7 @@ func makeRequestHandler(config *WatchdogConfig) func(http.ResponseWriter, *http.
case
http.MethodPost,
http.MethodPut,
http.MethodPatch,
http.MethodDelete,
http.MethodGet:
pipeRequest(config, w, r, r.Method)