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 a0e968a commit 6d0b954Copy full SHA for 6d0b954
client/sse.go
@@ -94,6 +94,11 @@ func (c *SSEMCPClient) Start(ctx context.Context) error {
94
req.Header.Set("Cache-Control", "no-cache")
95
req.Header.Set("Connection", "keep-alive")
96
97
+ // set custom http headers
98
+ for k, v := range c.headers {
99
+ req.Header.Set(k, v)
100
+ }
101
+
102
resp, err := c.httpClient.Do(req)
103
if err != nil {
104
return fmt.Errorf("failed to connect to SSE stream: %w", err)
0 commit comments