Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #396 from owncloud/fix/xodo_bug
Browse files Browse the repository at this point in the history
fix xodo sync bug
  • Loading branch information
abelgardep authored May 11, 2021
2 parents ccaf5a8 + 2c18ae4 commit bf6f93f
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import java.nio.channels.FileChannel;
import java.util.concurrent.TimeUnit;

import static com.owncloud.android.lib.common.http.HttpConstants.IF_MATCH_HEADER;
import static com.owncloud.android.lib.common.operations.RemoteOperationResult.ResultCode.OK;

/**
Expand Down Expand Up @@ -95,10 +94,6 @@ protected RemoteOperationResult uploadFile(OwnCloudClient client) throws Excepti
} else {
mPutMethod = new PutMethod(new URL(uriPrefix + File.separator + chunkIndex), mFileRequestBody);

if (mRequiredEtag != null && mRequiredEtag.length() > 0) {
mPutMethod.addRequestHeader(IF_MATCH_HEADER, "\"" + mRequiredEtag + "\"");
}

if (chunkIndex == chunkCount - 1) {
// Added a high timeout to the last chunk due to when the last chunk
// arrives to the server with the last PUT, all chunks get assembled
Expand Down

0 comments on commit bf6f93f

Please sign in to comment.