mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 18:54:21 +01:00
fix: image reading
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user