Skip to content

Commit

Permalink
[fix] #43905 append OAPIF extra query params if url is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Joonalai authored and github-actions[bot] committed Jul 1, 2021
1 parent 261cae0 commit 196e593
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/providers/wfs/qgsoapifprovider.cpp
Expand Up @@ -690,10 +690,9 @@ void QgsOapifFeatureDownloaderImpl::run( bool serializeFeatures, long long maxFe
}
}

url = mShared->appendExtraQueryParameters( url );

while ( !url.isEmpty() )
{
url = mShared->appendExtraQueryParameters( url );

if ( maxTotalFeatures > 0 && totalDownloadedFeatureCount >= maxTotalFeatures )
{
Expand Down Expand Up @@ -721,7 +720,6 @@ void QgsOapifFeatureDownloaderImpl::run( bool serializeFeatures, long long maxFe
break;
}
url = itemsRequest.nextUrl();
url = mShared->appendExtraQueryParameters( url );

// Consider if we should display a progress dialog
// We can only do that if we know how many features will be downloaded
Expand Down

0 comments on commit 196e593

Please sign in to comment.