Skip to content

Commit

Permalink
support stream response for ai testing
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchen2k committed Sep 24, 2024
1 parent 2182e21 commit 08f59a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/server/v1/handler/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func (c *TestsCtrl) Stream(ctx iris.Context) {
//ctx.Header("content-type", "text/event-stream")
ctx.ContentType("text/event-stream")
ctx.Header("Cache-Control", "no-cache")
ctx.SetCookieKV("cookie_from_server", "value123")

req := serverDomain.StreamTestObj{}
err := ctx.ReadJSON(&req)
Expand Down

0 comments on commit 08f59a8

Please sign in to comment.