Skip to content

Commit ecc6d8f

Browse files
authored
fix: custom header (#632)
1 parent 69772ea commit ecc6d8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/transport/sse.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,12 @@ func (c *SSE) SendRequest(
363363
req.Header.Set(k, v)
364364
}
365365

366+
for k, v := range request.Header {
367+
if _, ok := req.Header[k]; !ok {
368+
req.Header[k] = v
369+
}
370+
}
371+
366372
// Add OAuth authorization if configured
367373
if c.oauthHandler != nil {
368374
authHeader, err := c.oauthHandler.GetAuthorizationHeader(ctx)

0 commit comments

Comments
 (0)