Merge pull request #5 from lostsnow/feature/stream-output-as-response

add ability to stream command output as a response
This commit is contained in:
Su Yang 2023-01-09 22:15:28 +08:00 committed by GitHub
commit 46f93d752f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)
}