add ability to stream command output as a response

This commit is contained in:
lostsnow 2021-08-04 12:49:20 +08:00
parent 2a36f24269
commit afd20c569e
3 changed files with 44 additions and 9 deletions

View file

@ -58,7 +58,7 @@ func TestStaticParams(t *testing.T) {
ID: "test",
Headers: spHeaders,
}
_, err = handleHook(spHook, r)
_, err = handleHook(spHook, r, nil)
if err != nil {
t.Fatalf("Unexpected error: %v\n", err)
}