Don't return an error when deleting a non-existing article

pull/1/head
Grégory Oestreicher 2016-12-21 10:36:32 +01:00
parent 00094de886
commit cd5b8ff9c4
1 changed files with 2 additions and 1 deletions

View File

@ -107,8 +107,9 @@ void HttpDeleteRequest::onRequestDone()
{ {
QString content; QString content;
QString error; QString error;
int status = mReply->attribute( QNetworkRequest::HttpStatusCodeAttribute ).toInt();
if ( mReply->error() ) { if ( mReply->error() && !( status == 404 || status == 410 ) ) {
error = "Network error: "; error = "Network error: ";
error.append( mReply->errorString() ); error.append( mReply->errorString() );
} }