Browse Source

don't forget the last few bytes

pull/1371/head
Kimbsen 5 years ago
parent
commit
38626cb584
  1. 2
      weed/storage/needle/needle_parse_upload.go

2
weed/storage/needle/needle_parse_upload.go

@ -103,9 +103,7 @@ type ChecksumReader struct {
func (cr *ChecksumReader) Read(p []byte) (int, error) { func (cr *ChecksumReader) Read(p []byte) (int, error) {
n, err := cr.r.Read(p) n, err := cr.r.Read(p)
if err == nil {
cr.h.Write(p[:n]) cr.h.Write(p[:n])
}
return n, err return n, err
} }

Loading…
Cancel
Save