Skip to content

Commit

Permalink
[WFS provider] Fix connecting to a server with non-basic authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault authored and nyalldawson committed Oct 22, 2020
1 parent abacccb commit ff1d21a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/providers/wfs/qgswfssourceselect.cpp
Expand Up @@ -460,14 +460,15 @@ void QgsWFSSourceSelect::connectToServer()

QgsWfsConnection connection( cmbConnections->currentText() );

mVersion = QgsWFSDataSourceURI( connection.uri().uri() ).version();
const QString uri = connection.uri().uri( false );
mVersion = QgsWFSDataSourceURI( uri ).version();
if ( mVersion == QLatin1String( "OGC_API_FEATURES" ) )
{
startOapifLandingPageRequest();
}
else
{
mCapabilities.reset( new QgsWfsCapabilities( connection.uri().uri() ) );
mCapabilities.reset( new QgsWfsCapabilities( uri ) );
connect( mCapabilities.get(), &QgsWfsCapabilities::gotCapabilities, this, &QgsWFSSourceSelect::capabilitiesReplyFinished );
const bool synchronous = false;
const bool forceRefresh = true;
Expand Down

0 comments on commit ff1d21a

Please sign in to comment.