fix: image reading

This commit is contained in:
adamdottv
2025-07-08 13:02:13 -05:00
parent 8322f18e03
commit f31cbf2744
4 changed files with 16 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ func NewDecoder(res *http.Response) Decoder {
decoder = t(res.Body)
} else {
scn := bufio.NewScanner(res.Body)
scn.Buffer(nil, bufio.MaxScanTokenSize<<4)
scn.Buffer(nil, (bufio.MaxScanTokenSize<<4)*10)
decoder = &eventStreamDecoder{rc: res.Body, scn: scn}
}
return decoder