Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Expand allowed verbs for proxying calls
Browse files Browse the repository at this point in the history
- matches up with work done in GW and watchdog

Signed-off-by: Alex Ellis (VMware) <[email protected]>
  • Loading branch information
alexellis committed Sep 19, 2018
1 parent 26fbc82 commit 85782ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion handlers/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ func FunctionProxy(wildcard bool, client *client.Client) http.HandlerFunc {
}

switch r.Method {
case "POST", "GET":
case http.MethodPost,
http.MethodPut,
http.MethodPatch,
http.MethodDelete,
http.MethodGet:

xFunctionHeader := r.Header["X-Function"]
if len(xFunctionHeader) > 0 {
Expand Down

0 comments on commit 85782ed

Please sign in to comment.