Add unit tests for new env variable

Signed-off-by: Matias Pan <matias.pan26@gmail.com>
This commit is contained in:
Matias Pan
2019-04-04 17:18:26 -03:00
committed by Alex Ellis
parent 9477970924
commit 0384832299
2 changed files with 7 additions and 1 deletions

View File

@ -228,7 +228,7 @@ 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
// Deprecation notice: Http_ContentLength will be deprecated
envs = append(envs, fmt.Sprintf("Http_ContentLength=%d", r.ContentLength))
envs = append(envs, fmt.Sprintf("Http_Content_Length=%d", r.ContentLength))