Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix blocking request cancelation after a redirect occurs
  • Loading branch information
nyalldawson committed Feb 1, 2019
1 parent 150668d commit 4495699
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsblockingnetworkrequest.cpp
Expand Up @@ -306,6 +306,9 @@ void QgsBlockingNetworkRequest::replyFinished()
break;
};

if ( mFeedback )
connect( mFeedback, &QgsFeedback::canceled, mReply, &QNetworkReply::abort );

if ( !mAuthCfg.isEmpty() && !QgsApplication::authManager()->updateNetworkReply( mReply, mAuthCfg ) )
{
mReplyContent.clear();
Expand Down

0 comments on commit 4495699

Please sign in to comment.