mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 00:06:38 +00:00
Allow dot in function name
This patch enables the use-case for multiple namepsaces by allowing a dot to be used in the function name. dep has been run to update OpenFaaS projects and also to prune unused files. Tested by doing a build. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
dc3c5fb9b3
commit
0a90125aba
@ -65,12 +65,9 @@ func MakeForwardingProxyHandler(proxy *types.HTTPClientReverseProxy,
|
||||
log.Printf("error with upstream request to: %s, %s\n", requestURL, err.Error())
|
||||
}
|
||||
|
||||
// defer func() {
|
||||
for _, notifier := range notifiers {
|
||||
notifier.Notify(r.Method, requestURL, originalURL, statusCode, seconds)
|
||||
}
|
||||
// }()
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -89,6 +86,7 @@ func buildUpstreamRequest(r *http.Request, baseURL string, requestURL string) *h
|
||||
if len(r.Host) > 0 && upstreamReq.Header.Get("X-Forwarded-Host") == "" {
|
||||
upstreamReq.Header["X-Forwarded-Host"] = []string{r.Host}
|
||||
}
|
||||
|
||||
if upstreamReq.Header.Get("X-Forwarded-For") == "" {
|
||||
upstreamReq.Header["X-Forwarded-For"] = []string{r.RemoteAddr}
|
||||
}
|
||||
|
Reference in New Issue
Block a user