mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Fix querystring passing
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@ -200,8 +200,9 @@ func getAdditionalEnvs(config *WatchdogConfig, r *http.Request, method string) [
|
||||
|
||||
envs = append(envs, fmt.Sprintf("Http_Method=%s", method))
|
||||
|
||||
if len(r.URL.RawQuery) > 0 {
|
||||
envs = append(envs, fmt.Sprintf("Http_Query=%s", r.URL.RawQuery))
|
||||
log.Println(r.URL.String())
|
||||
if len(r.URL.String()) > 0 {
|
||||
envs = append(envs, fmt.Sprintf("Http_Query=%s", r.URL.String()))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user