mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Add Http_ContentLength for deterministic applications
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user