From 947797092465ef167941567e7cdb007ca5690aaf Mon Sep 17 00:00:00 2001 From: Matias Pan Date: Thu, 4 Apr 2019 09:57:28 -0300 Subject: [PATCH] Add Http_Content_Length to env variables Http_ContentLengh will be deprecated in the future. Signed-off-by: Matias Pan --- watchdog/handler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/watchdog/handler.go b/watchdog/handler.go index 7d8e7cea..76402cc2 100644 --- a/watchdog/handler.go +++ b/watchdog/handler.go @@ -228,7 +228,9 @@ func getAdditionalEnvs(config *WatchdogConfig, r *http.Request, method string) [ } envs = append(envs, fmt.Sprintf("Http_Method=%s", method)) + // DEPRECATED: Http_ContentLength will be deprecated in favour envs = append(envs, fmt.Sprintf("Http_ContentLength=%d", r.ContentLength)) + envs = append(envs, fmt.Sprintf("Http_Content_Length=%d", r.ContentLength)) if config.writeDebug { log.Println("Query ", r.URL.RawQuery)