mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Adds HTTP Host entry
Fixes: https://github.com/openfaas-incubator/of-watchdog/pull/24 Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
@ -249,6 +249,10 @@ func getAdditionalEnvs(config *WatchdogConfig, r *http.Request, method string) [
|
||||
envs = append(envs, fmt.Sprintf("Http_Path=%s", r.URL.Path))
|
||||
}
|
||||
|
||||
if len(r.Host) > 0 {
|
||||
envs = append(envs, fmt.Sprintf("Http_Host=%s", r.Host))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return envs
|
||||
|
Reference in New Issue
Block a user