1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Add line breaks

This commit is contained in:
davigonz 2016-12-13 10:48:24 +01:00
parent 09612b2dd9
commit 0fef17a609

View File

@ -153,10 +153,12 @@ public class UploadRemoteFileOperation extends RemoteOperation {
mPutMethod.addRequestHeader(IF_MATCH_HEADER, "\"" + mRequiredEtag + "\"");
}
mPutMethod.addRequestHeader(OC_TOTAL_LENGTH_HEADER, String.valueOf(f.length()));
// Tell to the server what is the last modification date of the file to upload
Long timeStampLong = System.currentTimeMillis()/1000;
String timeStamp = timeStampLong.toString();
mPutMethod.addRequestHeader(OC_X_OC_MTIME_HEADER, timeStamp);
mPutMethod.setRequestEntity(mEntity);
status = client.executeMethod(mPutMethod);