[mapserver-commits] r7330 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Jan 30 14:07:45 EST 2008


Author: tomkralidis
Date: 2008-01-30 14:07:45 -0500 (Wed, 30 Jan 2008)
New Revision: 7330

Modified:
   trunk/mapserver/mapogcsos.c
Log:
add initial ACCEPT_VERSIONS support


Modified: trunk/mapserver/mapogcsos.c
===================================================================
--- trunk/mapserver/mapogcsos.c	2008-01-30 19:03:34 UTC (rev 7329)
+++ trunk/mapserver/mapogcsos.c	2008-01-30 19:07:45 UTC (rev 7330)
@@ -2556,6 +2556,8 @@
         sosparams->pszService = strdup(request->ParamValues[i]);
       else if (strcasecmp(request->ParamNames[i], "VERSION") == 0)
         sosparams->pszVersion = strdup(request->ParamValues[i]);
+      else if (strcasecmp(request->ParamNames[i], "ACCEPT_VERSIONS") == 0)
+        sosparams->pszAcceptVersions = strdup(request->ParamValues[i]);
       else if (strcasecmp(request->ParamNames[i], "REQUEST") == 0)
         sosparams->pszRequest = strdup(request->ParamValues[i]);
       else if (strcasecmp(request->ParamNames[i], "UPDATESEQUENCE") == 0)
@@ -2748,6 +2750,8 @@
       free(sosparams->pszService);
     if (sosparams->pszVersion)
       free(sosparams->pszVersion);
+    if (sosparams->pszAcceptVersions)
+      free(sosparams->pszAcceptVersions);
     if (sosparams->pszUpdateSequence)
       free(sosparams->pszUpdateSequence);
     if (sosparams->pszRequest)



More information about the mapserver-commits mailing list