Skip to content
Permalink
Browse files

Merge pull request #42553 from gis-ops/nn_fix_http_error_response

Fill QgsNetworkReplyContent.content() on HTTP error
  • Loading branch information
m-kuhn authored and github-actions committed Mar 29, 2021
1 parent 1d16290 commit ac398bb355b53721126ae90b9020b86c9eb63e66
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/network/qgsblockingnetworkrequest.cpp
@@ -295,6 +295,7 @@ void QgsBlockingNetworkRequest::replyFinished()
{
if ( !mIsAborted && mReply )
{

if ( mReply->error() == QNetworkReply::NoError && ( !mFeedback || !mFeedback->isCanceled() ) )
{
QgsDebugMsgLevel( QStringLiteral( "reply OK" ), 2 );
@@ -408,6 +409,7 @@ void QgsBlockingNetworkRequest::replyFinished()
QgsMessageLog::logMessage( mErrorMessage, tr( "Network" ) );
}
mReplyContent = QgsNetworkReplyContent( mReply );
mReplyContent.setContent( mReply->readAll() );
}
}
if ( mTimedout )

0 comments on commit ac398bb

Please sign in to comment.