Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c20873b authored by Andy Scherzinger's avatar Andy Scherzinger Committed by GitHub
Browse files

Merge pull request #64 from imjarp/fixChunkOperation

assign the right instance
parents 48f441a9 f99e7d3e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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() {