mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
allow 202 reply from server on mkcol request.
This commit is contained in:
parent
08991a5177
commit
91cab8f15f
1 changed files with 3 additions and 1 deletions
|
@ -239,7 +239,9 @@ void FolderWizardTargetPage::slotCreateRemoteFolderFinished( QNetworkReply *repl
|
|||
qDebug() << "** webdav mkdir request finished " << reply->error();
|
||||
|
||||
_ui.OCFolderLineEdit->setEnabled( true );
|
||||
if( reply->error() == QNetworkReply::NoError ) {
|
||||
// the webDAV server seems to return a 202 even if mkdir was successful.
|
||||
if( reply->error() == QNetworkReply::NoError ||
|
||||
reply->error() == QNetworkReply::ContentOperationNotPermittedError) {
|
||||
showWarn( tr("Folder on ownCloud was successfully created."), false );
|
||||
slotTimerFires();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue