Merge pull request #30 from qistchan/fix-2109

Fix 2109
This commit is contained in:
Laisky.Cai
2025-02-26 09:02:24 +08:00
committed by GitHub
3 changed files with 12 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ func StreamHandler(c *gin.Context, resp *http.Response, relayMode int) (*model.E
doneRendered := false
for scanner.Scan() {
data := scanner.Text()
data := NormalizeDataLine(scanner.Text())
if len(data) < dataPrefixLength { // ignore blank line or wrong format
continue
}