Skip to content

Commit

Permalink
allow a failed QNetworkRequest to set a QgsNetworkReplyContent.conten…
Browse files Browse the repository at this point in the history
…t() for custom server error messages

(cherry picked from commit 5be8846)
  • Loading branch information
nilsnolde authored and nyalldawson committed Apr 17, 2021
1 parent 1648e16 commit 296588c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsblockingnetworkrequest.cpp
Expand Up @@ -383,6 +383,7 @@ void QgsBlockingNetworkRequest::replyFinished()
QgsMessageLog::logMessage( mErrorMessage, tr( "Network" ) );
}
mReplyContent = QgsNetworkReplyContent( mReply );
mReplyContent.setContent( mReply->readAll() );
}
}
if ( mTimedout )
Expand Down

0 comments on commit 296588c

Please sign in to comment.