Skip to content

Commit 3b2e0d5

Browse files
committed
Expand verbs allowed for proxying
- Adds additional verbs as per g/w and watchdog Signed-off-by: Alex Ellis (VMware) <[email protected]>
1 parent 418b33c commit 3b2e0d5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

handlers/proxy.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ func MakeProxy(functionNamespace string, timeout time.Duration) http.HandlerFunc
4040
}
4141

4242
switch r.Method {
43-
case http.MethodGet,
44-
http.MethodPost:
43+
case http.MethodPost,
44+
http.MethodPut,
45+
http.MethodPatch,
46+
http.MethodDelete,
47+
http.MethodGet:
4548

4649
vars := mux.Vars(r)
4750
service := vars["name"]

0 commit comments

Comments
 (0)