mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
Merge pull request #13 from tleyden/patch-1
Fix attempt for reported connection buildup
This commit is contained in:
commit
2563bf516b
@ -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