Merge pull request #32345 from elpaso/bugfix-gh32338-getcap-crash

Server fix getCapabilities crash when plugins are off
This commit is contained in:
Alessandro Pasotti 2019-10-22 20:55:57 +02:00 committed by GitHub
commit 13ad9d66be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ namespace QgsWfs
}
#else
doc = createGetCapabilitiesDocument( serverIface, project, version, request );
capabilitiesDocument = &doc;
#endif
response.setHeader( QStringLiteral( "Content-Type" ), QStringLiteral( "text/xml; charset=utf-8" ) );
response.write( capabilitiesDocument->toByteArray() );

View File

@ -63,6 +63,7 @@ namespace QgsWfs
}
#else
doc = createGetCapabilitiesDocument( serverIface, project, version, request );
capabilitiesDocument = &doc;
#endif
response.setHeader( QStringLiteral( "Content-Type" ), QStringLiteral( "text/xml; charset=utf-8" ) );
response.write( capabilitiesDocument->toByteArray() );