Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
server: deduce service wms from request if not explictly given (SERVI…
…CE not mandatory for WMS GetMap / GetFeatureInfo)

(cherry picked from commit 3552b83)
  • Loading branch information
jef-n committed Mar 25, 2015
1 parent e983efb commit 3229813
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/server/qgis_map_serv.cpp
Expand Up @@ -392,6 +392,16 @@ int main( int argc, char * argv[] )
//Service parameter
QString serviceString = theRequestHandler->parameter( "SERVICE" );

if ( serviceString.isEmpty() )
{
// SERVICE not mandatory for WMS 1.3.0 GetMap & GetFeatureInfo
QString requestString = theRequestHandler->parameter( "REQUEST" );
if ( requestString == "GetMap" || requestString == "GetFeatureInfo" )
{
serviceString = "WMS";
}
}

// Enter core services main switch
if ( !theRequestHandler->exceptionRaised() )
{
Expand Down

0 comments on commit 3229813

Please sign in to comment.