Skip to content

Commit 391be8e

Browse files
author
rblazek
committed
setAuthorization for GetFeatureInfo
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15653 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 279a1f5 commit 391be8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/providers/wms/qgswmsprovider.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2741,7 +2741,9 @@ QStringList QgsWmsProvider::identifyAs( const QgsPoint& point, QString format )
27412741
// requestUrl += QString( "&I=%1&J=%2" ).arg( point.x() ).arg( point.y() );
27422742

27432743
QgsDebugMsg( QString( "getfeatureinfo: %1" ).arg( requestUrl ) );
2744-
mIdentifyReply = QgsNetworkAccessManager::instance()->get( QNetworkRequest( requestUrl ) );
2744+
QNetworkRequest request( requestUrl );
2745+
setAuthorization( request );
2746+
mIdentifyReply = QgsNetworkAccessManager::instance()->get( request );
27452747
connect( mIdentifyReply, SIGNAL( finished() ), this, SLOT( identifyReplyFinished() ) );
27462748

27472749
while ( mIdentifyReply )

0 commit comments

Comments
 (0)