mirror of
https://github.com/openfaas/faas.git
synced 2025-06-14 11:16:47 +00:00
Fix attempt for reported connection buildup
Regarding https://github.com/golang/go/issues/6785#issuecomment-275669472
This commit is contained in:
parent
d031e3154e
commit
dd67519cc4
@ -29,6 +29,7 @@ func makeRequestHandler(config *WatchdogConfig) func(http.ResponseWriter, *http.
|
|||||||
writer, _ := targetCmd.StdinPipe()
|
writer, _ := targetCmd.StdinPipe()
|
||||||
|
|
||||||
res, _ := ioutil.ReadAll(r.Body)
|
res, _ := ioutil.ReadAll(r.Body)
|
||||||
|
defer r.Body.Close()
|
||||||
|
|
||||||
writer.Write(res)
|
writer.Write(res)
|
||||||
writer.Close()
|
writer.Close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user