Skip to content

Commit e8d90a0

Browse files
authored
Merge pull request #23 from xinwo/fix/compare_endpoint
modify endpoint compare logic
2 parents c9443eb + 8e6cddc commit e8d90a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/sse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (c *SSEMCPClient) readSSE(reader io.ReadCloser) {
139139
func (c *SSEMCPClient) handleSSEEvent(event, data string) {
140140
switch event {
141141
case "endpoint":
142-
endpoint, err := url.Parse(data)
142+
endpoint, err := c.baseURL.Parse(data)
143143
if err != nil {
144144
fmt.Printf("Error parsing endpoint URL: %v\n", err)
145145
return

0 commit comments

Comments
 (0)