Add Http_ContentLength for deterministic applications

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2017-10-27 15:21:20 +01:00
parent 4889c779b7
commit 33e794abde
2 changed files with 44 additions and 0 deletions

View File

@ -202,6 +202,7 @@ func getAdditionalEnvs(config *WatchdogConfig, r *http.Request, method string) [
}
envs = append(envs, fmt.Sprintf("Http_Method=%s", method))
envs = append(envs, fmt.Sprintf("Http_ContentLength=%d", r.ContentLength))
if config.writeDebug {
log.Println("Query ", r.URL.RawQuery)