mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-18 03:56:35 +00:00
Upgrade to faas-provider 0.17.1
**What** Update faas-provider to get the proxy implementation that allows CORS requests (OPTIONS) and HEAD. Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
6262ff2f4a
commit
29bb5ad9cc
5
vendor/github.com/openfaas/faas-provider/proxy/proxy.go
generated
vendored
5
vendor/github.com/openfaas/faas-provider/proxy/proxy.go
generated
vendored
@ -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:
|
||||
|
Reference in New Issue
Block a user