Fix attempt for reported connection buildup

Regarding https://github.com/golang/go/issues/6785#issuecomment-275669472
This commit is contained in:
Traun Leyden 2017-01-27 08:14:57 -08:00 committed by GitHub
parent d031e3154e
commit dd67519cc4

View File

@ -29,6 +29,7 @@ func makeRequestHandler(config *WatchdogConfig) func(http.ResponseWriter, *http.
writer, _ := targetCmd.StdinPipe()
res, _ := ioutil.ReadAll(r.Body)
defer r.Body.Close()
writer.Write(res)
writer.Close()