fix bug: a broken http connection will cause io.Copy() stuck and file’s offset will not be updated
Merge pull request #18 from doggy/master

fix bug: a broken http connection will cause io.Copy() stuck and file’s ...