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:
parent
09612b2dd9
commit
0fef17a609
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user