Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/android-library.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2017-05-31 22:37:56 +0300
committerGitHub <noreply@github.com>2017-05-31 22:37:56 +0300
commit8c20873b55a16d74465c93d62d4646d7563c02e3 (patch)
treea08da2e1eb8cd4554612bb5e8daecc15d3439d2d
parent48f441a9688872216883221566ede79916693c45 (diff)
parentf99e7d3ef263d13281b73c05338f1455a576cbcf (diff)
Merge pull request #64 from imjarp/fixChunkOperation1.0.21
assign the right instance
-rw-r--r--src/com/owncloud/android/lib/resources/files/ChunkedUploadRemoteFileOperation.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/owncloud/android/lib/resources/files/ChunkedUploadRemoteFileOperation.java b/src/com/owncloud/android/lib/resources/files/ChunkedUploadRemoteFileOperation.java
index 18b78a48..261f4556 100644
--- a/src/com/owncloud/android/lib/resources/files/ChunkedUploadRemoteFileOperation.java
+++ b/src/com/owncloud/android/lib/resources/files/ChunkedUploadRemoteFileOperation.java
@@ -162,7 +162,7 @@ public class ChunkedUploadRemoteFileOperation extends UploadRemoteFileOperation
String chunkSizeStr,
String totalLengthStr,
long offset) {
- PutMethod putMethod = new PutMethod(uriPrefix + chunkCount + "-" + chunkIndex);
+ mPutMethod = new PutMethod(uriPrefix + chunkCount + "-" + chunkIndex);
if (mRequiredEtag != null && mRequiredEtag.length() > 0) {
mPutMethod.addRequestHeader(IF_MATCH_HEADER, "\"" + mRequiredEtag + "\"");
}
@@ -183,7 +183,7 @@ public class ChunkedUploadRemoteFileOperation extends UploadRemoteFileOperation
mPutMethod.getParams().setSoTimeout(LAST_CHUNK_TIMEOUT);
}
- return putMethod;
+ return mPutMethod;
}
private String getDateAsString() {