Browse Source

Merge pull request #1844 from kmlebedev/processRangeRequest

pull/1862/head
Chris Lu 4 years ago
committed by GitHub
parent
commit
543c8daa6d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      weed/server/filer_server_handlers_read.go

1
weed/server/filer_server_handlers_read.go

@ -156,6 +156,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,
}
if offset+size <= int64(len(entry.Content)) {
_, err := writer.Write(entry.Content[offset : offset+size])
glog.Errorf("failed to write entry content: %v", err)
return err
}
return filer.StreamContent(fs.filer.MasterClient, writer, entry.Chunks, offset, size)

Loading…
Cancel
Save