Skip to content

Commit

Permalink
Merge pull request #1202 from nextcloud/remoteid2
Browse files Browse the repository at this point in the history
wip
  • Loading branch information
tobiasKaminsky authored Sep 25, 2023
2 parents 55aebde + c6d7176 commit 5c83a0b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ private RemoteOperationResult<String> 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);
Expand Down

0 comments on commit 5c83a0b

Please sign in to comment.