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 39ee6ec commit 6b9c30fCopy full SHA for 6b9c30f
server/sse.go
@@ -496,8 +496,12 @@ func (s *SSEServer) GetMessageEndpointForClient(r *http.Request, sessionID strin
496
if s.useFullURLForMessageEndpoint && s.baseURL != "" {
497
endpointPath = s.baseURL + endpointPath
498
}
499
-
500
- return fmt.Sprintf("%s?sessionId=%s", endpointPath, sessionID)
+ if strings.Contains(endpointPath, "?") {
+ endpointPath += "&"
501
+ } else {
502
+ endpointPath += "?"
503
+ }
504
+ return fmt.Sprintf("%ssessionId=%s", endpointPath, sessionID)
505
506
507
// handleMessage processes incoming JSON-RPC messages from clients and sends responses
0 commit comments