Skip to content

Commit 0f7dfc9

Browse files
committed
[server] QsgServerInterface available without python
1 parent 563de37 commit 0f7dfc9

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/server/qgsserver.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,7 @@ void QgsServer::handleRequest( QgsServerRequest& request, QgsServerResponse& res
399399
//Config file path
400400
QString configFilePath = configPath( *sConfigFilePath, parameterMap );
401401

402-
#ifdef HAVE_SERVER_PYTHON_PLUGINS
403-
// XXX Why this is enabled only fol plugins ?
404402
sServerInterface->setConfigFilePath( configFilePath );
405-
#endif
406403

407404
//Service parameter
408405
QString serviceString = parameterMap.value( QStringLiteral( "SERVICE" ) );

src/server/qgsserver.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class SERVER_EXPORT QgsServer
7171
*/
7272
void handleRequest( QgsServerRequest& request, QgsServerResponse& response );
7373

74-
/** Handles the request from query strinf
74+
/** Handles the request from query string
7575
* The query string is normally read from environment
7676
* but can be also passed in args and in this case overrides the environment
7777
* variable.
@@ -125,9 +125,7 @@ class SERVER_EXPORT QgsServer
125125
// Status
126126
static QString* sConfigFilePath;
127127
static QgsCapabilitiesCache* sCapabilitiesCache;
128-
#ifdef HAVE_SERVER_PYTHON_PLUGINS
129128
static QgsServerInterfaceImpl* sServerInterface;
130-
#endif
131129
//! Initialization must run once for all servers
132130
static bool sInitialised;
133131

0 commit comments

Comments
 (0)