Fix querystring passing

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis 2017-09-09 09:42:57 +01:00
parent d9d73dff16
commit b9be8293a8
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
FROM alpine:latest FROM alpine:latest
ADD https://github.com/alexellis/faas/releases/download/0.5.6-alpha/fwatchdog /usr/bin ADD https://github.com/alexellis/faas/releases/download/0.6.5/fwatchdog /usr/bin
# COPY ./fwatchdog /usr/bin/ # COPY ./fwatchdog /usr/bin/
RUN chmod +x /usr/bin/fwatchdog RUN chmod +x /usr/bin/fwatchdog

View File

@ -200,8 +200,9 @@ func getAdditionalEnvs(config *WatchdogConfig, r *http.Request, method string) [
envs = append(envs, fmt.Sprintf("Http_Method=%s", method)) envs = append(envs, fmt.Sprintf("Http_Method=%s", method))
if len(r.URL.RawQuery) > 0 { log.Println(r.URL.String())
envs = append(envs, fmt.Sprintf("Http_Query=%s", r.URL.RawQuery)) if len(r.URL.String()) > 0 {
envs = append(envs, fmt.Sprintf("Http_Query=%s", r.URL.String()))
} }
} }