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 208b951 commit 46453aaCopy full SHA for 46453aa
pkg/relayer/cmd/cmd_relay.go
@@ -397,7 +397,10 @@ func processStreamRequest(ctx context.Context,
397
logger.Info().Msgf("🌊 Handling streaming response with status:")
398
399
// Check if this is SSE (used below, if this is SSE we will unmarshal)
400
- isSSE := strings.EqualFold(httpResp.Header.Get("Content-Type"), "text/event-stream")
+ isSSE := strings.Contains(strings.ToLower(httpResp.Header.Get("Content-Type")), "text/event-stream")
401
+ if isSSE {
402
+ logger.Info().Msgf("🔍 Detected SSE stream, we will try to unmarshal.")
403
+ }
404
405
// Start handling the body chunks
406
scanner := bufio.NewScanner(httpResp.Body)
0 commit comments