Don't return an error when deleting a non-existing article
parent
00094de886
commit
cd5b8ff9c4
|
@ -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() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue