Merge pull request #13 from tleyden/patch-1

Fix attempt for reported connection buildup
This commit is contained in:
Alex Ellis 2017-01-27 17:16:01 +00:00 committed by GitHub
commit 2563bf516b

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()