"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/server/qgsserver.cpp" between
QGIS-final-3_14_15.tar.gz and QGIS-final-3_14_16.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Latest release (3.14.x series).

qgsserver.cpp  (QGIS-final-3_14_15):qgsserver.cpp  (QGIS-final-3_14_16)
skipping to change at line 372 skipping to change at line 372
// Setup project (config file path) // Setup project (config file path)
if ( ! project ) if ( ! project )
{ {
QString configFilePath = configPath( *sConfigFilePath, params.map() ); QString configFilePath = configPath( *sConfigFilePath, params.map() );
// load the project if needed and not empty // load the project if needed and not empty
project = mConfigCache->project( configFilePath, sServerInterface->serve rSettings() ); project = mConfigCache->project( configFilePath, sServerInterface->serve rSettings() );
} }
// Set the current project instance
QgsProject::setInstance( const_cast<QgsProject *>( project ) );
if ( project ) if ( project )
{ {
sServerInterface->setConfigFilePath( project->fileName() ); sServerInterface->setConfigFilePath( project->fileName() );
} }
// Dispatcher: if SERVICE is set, we assume a OWS service, if not, let's t ry an API // Dispatcher: if SERVICE is set, we assume a OWS service, if not, let's t ry an API
// TODO: QGIS 4 fix the OWS services and treat them as APIs // TODO: QGIS 4 fix the OWS services and treat them as APIs
QgsServerApi *api = nullptr; QgsServerApi *api = nullptr;
if ( params.service().isEmpty() && ( api = sServiceRegistry->apiForRequest ( request ) ) ) if ( params.service().isEmpty() && ( api = sServiceRegistry->apiForRequest ( request ) ) )
{ {
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)