-
-
Notifications
You must be signed in to change notification settings - Fork 860
Closed
Labels
Description
I've added ability to stream command output directly to a response. milolav@09642fb
Needed it to monitor manually invoked long running scripts. It is based on a code mentioned in this question https://stackoverflow.com/questions/19292113/not-buffered-http-responsewritter-in-golang
If script starts, a response will always be successful regardless of the exit code.
Would this addition be something in line with project goals?
One issue that I've noticed is when opening hook url in a browser, response gets delayed for a few seconds and I have no idea why. When opening with curl/wget response starts streaming immediately. Implementation from the stackoverflow ( https://play.golang.org/p/PpbPyXbtEs ) doesn't have this issue.