diff --git a/go.mod b/go.mod index 8692f26..e7de9ec 100644 --- a/go.mod +++ b/go.mod @@ -30,7 +30,7 @@ require ( github.com/opencontainers/runc v1.0.0-rc9 // indirect github.com/opencontainers/runtime-spec v1.0.2 github.com/openfaas/faas v0.0.0-20201205125747-9bbb25e3c7c4 - github.com/openfaas/faas-provider v0.17.0 + github.com/openfaas/faas-provider v0.17.1 github.com/pkg/errors v0.9.1 github.com/prometheus/procfs v0.2.0 // indirect github.com/sethvargo/go-password v0.1.3 diff --git a/go.sum b/go.sum index ed4d384..e55395a 100644 --- a/go.sum +++ b/go.sum @@ -183,6 +183,8 @@ github.com/openfaas/faas v0.0.0-20201205125747-9bbb25e3c7c4 h1:JJjthDw7WziZQ7sC5 github.com/openfaas/faas v0.0.0-20201205125747-9bbb25e3c7c4/go.mod h1:E0m2rLup0Vvxg53BKxGgaYAGcZa3Xl+vvL7vSi5yQ14= github.com/openfaas/faas-provider v0.17.0 h1:4rT8CosKhI5xaAMqbyihEgR6KefO/ViJdF0a8THTgwM= github.com/openfaas/faas-provider v0.17.0/go.mod h1:fq1JL0mX4rNvVVvRLaLRJ3H6o667sHuyP5p/7SZEe98= +github.com/openfaas/faas-provider v0.17.1 h1:P5xTLN+/08PLLh4auIlO/PaUD/J3BUTmaC3en8N5zbs= +github.com/openfaas/faas-provider v0.17.1/go.mod h1:fq1JL0mX4rNvVVvRLaLRJ3H6o667sHuyP5p/7SZEe98= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/vendor/github.com/openfaas/faas-provider/proxy/proxy.go b/vendor/github.com/openfaas/faas-provider/proxy/proxy.go index 0941269..7c86b9e 100644 --- a/vendor/github.com/openfaas/faas-provider/proxy/proxy.go +++ b/vendor/github.com/openfaas/faas-provider/proxy/proxy.go @@ -74,8 +74,9 @@ func NewHandlerFunc(config types.FaaSConfig, resolver BaseURLResolver) http.Hand http.MethodPut, http.MethodPatch, http.MethodDelete, - http.MethodGet: - + http.MethodGet, + http.MethodOptions, + http.MethodHead: proxyRequest(w, r, proxyClient, resolver) default: diff --git a/vendor/modules.txt b/vendor/modules.txt index 1711472..bb6f17a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -195,7 +195,7 @@ github.com/opencontainers/runtime-spec/specs-go # github.com/openfaas/faas v0.0.0-20201205125747-9bbb25e3c7c4 ## explicit github.com/openfaas/faas/gateway/requests -# github.com/openfaas/faas-provider v0.17.0 +# github.com/openfaas/faas-provider v0.17.1 ## explicit github.com/openfaas/faas-provider github.com/openfaas/faas-provider/auth