mirror of
https://github.com/openfaas/faas.git
synced 2025-06-22 06:43:23 +00:00
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:
@ -299,6 +299,7 @@ func makeRequestHandler(config *WatchdogConfig) func(http.ResponseWriter, *http.
|
|||||||
case
|
case
|
||||||
http.MethodPost,
|
http.MethodPost,
|
||||||
http.MethodPut,
|
http.MethodPut,
|
||||||
|
http.MethodPatch,
|
||||||
http.MethodDelete,
|
http.MethodDelete,
|
||||||
http.MethodGet:
|
http.MethodGet:
|
||||||
pipeRequest(config, w, r, r.Method)
|
pipeRequest(config, w, r, r.Method)
|
||||||
|
Reference in New Issue
Block a user