Skip to content
Permalink
Browse files
Add comment and fix compile
  • Loading branch information
mhugent committed Jun 21, 2021
1 parent 2b97162 commit 408ed548eda1daa78dd5b128d493c5478d1f600b
Showing with 3 additions and 1 deletion.
  1. +1 −0 src/core/qgstilecache.cpp
  2. +2 −1 tests/src/core/testqgsnetworkaccessmanager.cpp
@@ -34,6 +34,7 @@ void QgsTileCache::insertTile( const QUrl &url, const QImage &image )
bool QgsTileCache::tile( const QUrl &url, QImage &image )
{
QNetworkRequest req( url );
//Preprocessing might alter the url, so we need to make sure we store/retrieve the url after preprocessing
QgsNetworkAccessManager::instance()->preprocessRequest( &req );
QUrl adjUrl = req.url();

@@ -1128,6 +1128,7 @@ void TestQgsNetworkAccessManager::testCookieManagement()
thread2.start();
evLoop.exec();
QVERIFY( thread2.getResult() );
};

void TestQgsNetworkAccessManager::testRequestPreprocessor()
{
@@ -1137,7 +1138,7 @@ void TestQgsNetworkAccessManager::testRequestPreprocessor()
QString userAgent = request.header( QNetworkRequest::UserAgentHeader ).toString();
QCOMPARE( userAgent, "QGIS" );
QgsNetworkAccessManager::instance()->removeRequestPreprocessor( processorId );
}
};

QGSTEST_MAIN( TestQgsNetworkAccessManager )
#include "testqgsnetworkaccessmanager.moc"

0 comments on commit 408ed54

Please sign in to comment.