Stream command output as a response

This commit is contained in:
Miro 2020-08-05 17:53:34 +01:00
parent c7a8fbc929
commit a13a37f695
3 changed files with 45 additions and 9 deletions

View file

@ -53,7 +53,7 @@ func TestStaticParams(t *testing.T) {
b := &bytes.Buffer{}
log.SetOutput(b)
_, err = handleHook(spHook, "test", &spHeaders, &map[string]interface{}{}, &map[string]interface{}{}, &[]byte{})
_, err = handleHook(spHook, "test", &spHeaders, &map[string]interface{}{}, &map[string]interface{}{}, &[]byte{}, nil)
if err != nil {
t.Fatalf("Unexpected error: %v\n", err)
}