File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1413,7 +1413,7 @@ bool QgsWmsProvider::retrieveServerCapabilities( bool forceRefresh )
1413
1413
// GML.1, GML.2, or GML.3
1414
1414
// 1.1.0, 1.3.0 - mime types, GML should use application/vnd.ogc.gml
1415
1415
// but in UMN Mapserver it may be also OUTPUTFORMAT, e.g. OGRGML
1416
- IdentifyFormat format;
1416
+ IdentifyFormat format = IdentifyFormatUndefined ;
1417
1417
if ( f == " MIME" )
1418
1418
format = IdentifyFormatText; // 1.0
1419
1419
else if ( f == " text/plain" )
@@ -1453,12 +1453,15 @@ void QgsWmsProvider::capabilitiesReplyFinished()
1453
1453
1454
1454
const QUrl& toUrl = redirect.toUrl ();
1455
1455
mCapabilitiesReply ->request ();
1456
- if ( toUrl == mCapabilitiesReply ->url () ) {
1456
+ if ( toUrl == mCapabilitiesReply ->url () )
1457
+ {
1457
1458
mErrorFormat = " text/plain" ;
1458
1459
mError = tr ( " Redirect loop detected: %1" ).arg ( toUrl.toString () );
1459
1460
QgsMessageLog::logMessage ( mError , tr ( " WMS" ) );
1460
1461
mHttpCapabilitiesResponse .clear ();
1461
- } else {
1462
+ }
1463
+ else
1464
+ {
1462
1465
QNetworkRequest request ( toUrl );
1463
1466
setAuthorization ( request );
1464
1467
request.setAttribute ( QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferNetwork );
You can’t perform that action at this time.
0 commit comments