Skip to content
Permalink
Browse files

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 3229813fb4d085ac84210717afc06731e0a883ff
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/server/qgis_map_serv.cpp
@@ -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() )
{

0 comments on commit 3229813

Please sign in to comment.
You can’t perform that action at this time.