mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Add unit tests for new env variable
Signed-off-by: Matias Pan <matias.pan26@gmail.com>
This commit is contained in:
@ -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))
|
||||
|
||||
|
Reference in New Issue
Block a user