allow 202 reply from server on mkcol request.

This commit is contained in:
Klaas Freitag 2012-03-16 15:20:50 +01:00
parent 08991a5177
commit 91cab8f15f

View file

@ -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 {