fix: image reading
This commit is contained in:
parent
8322f18e03
commit
f31cbf2744
4 changed files with 16 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue