Skip to content

Commit

Permalink
Remove leftover buffer size code (credit to @nirvn)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 1, 2019
1 parent 8bcd46c commit 150668d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/core/qgsblockingnetworkrequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#include <QNetworkCacheMetaData>
#include <QAuthenticator>

const qint64 READ_BUFFER_SIZE_HINT = 1024 * 1024;

QgsBlockingNetworkRequest::QgsBlockingNetworkRequest()
{
connect( QgsNetworkAccessManager::instance(), qgis::overload< QNetworkReply * >::of( &QgsNetworkAccessManager::requestTimedOut ), this, &QgsBlockingNetworkRequest::requestTimedOut );
Expand Down Expand Up @@ -127,7 +125,6 @@ QgsBlockingNetworkRequest::ErrorCode QgsBlockingNetworkRequest::doRequest( QgsBl
break;
};

mReply->setReadBufferSize( READ_BUFFER_SIZE_HINT );
if ( mFeedback )
connect( mFeedback, &QgsFeedback::canceled, mReply, &QNetworkReply::abort );

Expand Down Expand Up @@ -309,8 +306,6 @@ void QgsBlockingNetworkRequest::replyFinished()
break;
};

mReply->setReadBufferSize( READ_BUFFER_SIZE_HINT );

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

0 comments on commit 150668d

Please sign in to comment.