diff --git a/library/src/main/java/com/owncloud/android/lib/resources/files/CreateFolderRemoteOperation.java b/library/src/main/java/com/owncloud/android/lib/resources/files/CreateFolderRemoteOperation.java index 8e4be6a90..b95d697ff 100644 --- a/library/src/main/java/com/owncloud/android/lib/resources/files/CreateFolderRemoteOperation.java +++ b/library/src/main/java/com/owncloud/android/lib/resources/files/CreateFolderRemoteOperation.java @@ -111,9 +111,8 @@ private RemoteOperationResult createFolder(OwnCloudClient client) { } else { result = new RemoteOperationResult<>(mkCol.succeeded(), mkCol); Header fileIdHeader = mkCol.getResponseHeader("OC-FileId"); - Header cookieHeader = mkCol.getResponseHeader("Set-Cookie"); - if (fileIdHeader != null && cookieHeader != null) { + if (fileIdHeader != null) { String fileId = fileIdHeader.getValue(); result.setResultData(fileId);