Permalink
Browse files

fs: set CompressedSize when sending files.

Apparently, the Samsung stack uses this value even after the actual
object has been sent.
  • Loading branch information...
1 parent b243252 commit cb866543f5bdba0c551a64babdd6ed9be0604e09 @hanwen committed Feb 21, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 fs/classic.go
View
@@ -82,6 +82,8 @@ func (n *classicNode) send() error {
if fi.Size() > 0xFFFFFFFF {
f.CompressedSize = 0xFFFFFFFF
+ } else {
+ f.CompressedSize = uint32(fi.Size())
}
n.Size = fi.Size()
start := time.Now()

0 comments on commit cb86654

Please sign in to comment.