forked from TrueCloudLab/frostfs-s3-gw
[#642] Fix streaming empty body
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
e184b333e4
commit
e0a54fcbd3
4 changed files with 141 additions and 0 deletions
|
@ -31,6 +31,10 @@ func (c *s3UnsignedChunkReader) Read(buf []byte) (num int, err error) {
|
|||
buf = buf[num:]
|
||||
}
|
||||
|
||||
if c.err != nil {
|
||||
return 0, c.err
|
||||
}
|
||||
|
||||
var size int
|
||||
var b byte
|
||||
for {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue