We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7e9b30 commit 51ffe02Copy full SHA for 51ffe02
server/sse.go
@@ -473,8 +473,12 @@ func (s *SSEServer) GetMessageEndpointForClient(r *http.Request, sessionID strin
473
if s.useFullURLForMessageEndpoint && s.baseURL != "" {
474
endpointPath = s.baseURL + endpointPath
475
}
476
-
477
- return fmt.Sprintf("%s?sessionId=%s", endpointPath, sessionID)
+ if strings.Contains(endpointPath, "?") {
+ endpointPath += "&"
478
+ } else {
479
+ endpointPath += "?"
480
+ }
481
+ return fmt.Sprintf("%ssessionId=%s", endpointPath, sessionID)
482
483
484
// handleMessage processes incoming JSON-RPC messages from clients and sends responses
0 commit comments