From e9f5be107bd984e38abe6f3baa233a33bbf31213 Mon Sep 17 00:00:00 2001 From: Edward Wilde Date: Wed, 22 Aug 2018 08:14:26 +0100 Subject: [PATCH] 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 --- watchdog/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/watchdog/handler.go b/watchdog/handler.go index e26866e6..61d6f5db 100644 --- a/watchdog/handler.go +++ b/watchdog/handler.go @@ -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)