Skip to content
Permalink
Browse files

Remove leftover buffer size code (credit to @nirvn)

  • Loading branch information
nyalldawson committed Feb 1, 2019
1 parent 8bcd46c commit 150668dda8a9476613b7d81b8a8014ee032b2c34
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/core/qgsblockingnetworkrequest.cpp
@@ -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 );
@@ -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 );

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

mReply->setReadBufferSize( READ_BUFFER_SIZE_HINT );

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

0 comments on commit 150668d

Please sign in to comment.
You can’t perform that action at this time.