Update main.go
This commit is contained in:
parent
bc72d5bb0c
commit
8f04f44817
@ -119,6 +119,8 @@ func StreamHandler(c *gin.Context, resp *http.Response) (*model.ErrorWithStatusC
|
|||||||
common.SetEventStreamHeaders(c)
|
common.SetEventStreamHeaders(c)
|
||||||
|
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
|
line := scanner.Text()
|
||||||
|
fmt.Println("Scanned line:", line)
|
||||||
data := strings.TrimPrefix(scanner.Text(), "}")
|
data := strings.TrimPrefix(scanner.Text(), "}")
|
||||||
data = data + "}"
|
data = data + "}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user