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

Commit 594ed2e

Browse files
committed
fix xodo file sync bug
1 parent ccaf5a8 commit 594ed2e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/chunks/ChunkedUploadRemoteFileOperation.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
package com.owncloud.android.lib.resources.files.chunks;
2626

2727
import com.owncloud.android.lib.common.OwnCloudClient;
28+
import com.owncloud.android.lib.common.http.HttpConstants;
2829
import com.owncloud.android.lib.common.http.methods.webdav.PutMethod;
2930
import com.owncloud.android.lib.common.network.ChunkFromFileRequestBody;
3031
import com.owncloud.android.lib.common.operations.OperationCancelledException;
@@ -95,10 +96,6 @@ protected RemoteOperationResult uploadFile(OwnCloudClient client) throws Excepti
9596
} else {
9697
mPutMethod = new PutMethod(new URL(uriPrefix + File.separator + chunkIndex), mFileRequestBody);
9798

98-
if (mRequiredEtag != null && mRequiredEtag.length() > 0) {
99-
mPutMethod.addRequestHeader(IF_MATCH_HEADER, "\"" + mRequiredEtag + "\"");
100-
}
101-
10299
if (chunkIndex == chunkCount - 1) {
103100
// Added a high timeout to the last chunk due to when the last chunk
104101
// arrives to the server with the last PUT, all chunks get assembled

0 commit comments

Comments
 (0)