Commit f122a8c5 by JustSong

fix: fix stream mode checking (#83)

parent 10bb67f8
......@@ -175,7 +175,7 @@ func relayHelper(c *gin.Context) error {
return err
}
var textResponse TextResponse
isStream := resp.Header.Get("Content-Type") == "text/event-stream"
isStream := strings.HasPrefix(resp.Header.Get("Content-Type"), "text/event-stream")
var streamResponseText string
defer func() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment