mirror of
https://github.com/openfaas/faas.git
synced 2025-06-25 08:13:25 +00:00
Add Http_Content_Length to env variables
Http_ContentLengh will be deprecated in the future. Signed-off-by: Matias Pan <matias.pan26@gmail.com>
This commit is contained in:
@ -228,7 +228,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))
|
||||||
|
// DEPRECATED: Http_ContentLength will be deprecated in favour
|
||||||
envs = append(envs, fmt.Sprintf("Http_ContentLength=%d", r.ContentLength))
|
envs = append(envs, fmt.Sprintf("Http_ContentLength=%d", r.ContentLength))
|
||||||
|
envs = append(envs, fmt.Sprintf("Http_Content_Length=%d", r.ContentLength))
|
||||||
|
|
||||||
if config.writeDebug {
|
if config.writeDebug {
|
||||||
log.Println("Query ", r.URL.RawQuery)
|
log.Println("Query ", r.URL.RawQuery)
|
||||||
|
Reference in New Issue
Block a user