Skip to content

Commit 8c20873

Browse files
Merge pull request #64 from imjarp/fixChunkOperation
assign the right instance
2 parents 48f441a + f99e7d3 commit 8c20873

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/owncloud/android/lib/resources/files/ChunkedUploadRemoteFileOperation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private PutMethod createPutMethod(String uriPrefix,
162162
String chunkSizeStr,
163163
String totalLengthStr,
164164
long offset) {
165-
PutMethod putMethod = new PutMethod(uriPrefix + chunkCount + "-" + chunkIndex);
165+
mPutMethod = new PutMethod(uriPrefix + chunkCount + "-" + chunkIndex);
166166
if (mRequiredEtag != null && mRequiredEtag.length() > 0) {
167167
mPutMethod.addRequestHeader(IF_MATCH_HEADER, "\"" + mRequiredEtag + "\"");
168168
}
@@ -183,7 +183,7 @@ private PutMethod createPutMethod(String uriPrefix,
183183
mPutMethod.getParams().setSoTimeout(LAST_CHUNK_TIMEOUT);
184184
}
185185

186-
return putMethod;
186+
return mPutMethod;
187187
}
188188

189189
private String getDateAsString() {

0 commit comments

Comments
 (0)