Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions client/transport/streamable_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ func (c *StreamableHTTP) readSSE(ctx context.Context, reader io.ReadCloser, hand
event = strings.TrimSpace(strings.TrimPrefix(line, "event:"))
} else if strings.HasPrefix(line, "data:") {
data = strings.TrimSpace(strings.TrimPrefix(line, "data:"))
} else {
// Server may response with arbitrary data
data = line
}
}
}
Expand Down