Skip to content

Commit

Permalink
Merge pull request #4718 from EOX-A/version_attribute
Browse files Browse the repository at this point in the history
Adjust version attribute in WCS exceptions (#4717)
  • Loading branch information
Schpidi committed Aug 5, 2013
2 parents f29af64 + 84f5051 commit 3181c28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions mapwcs.c
Expand Up @@ -139,17 +139,18 @@ int msWCSException(mapObj *map, const char *code, const char *locator,
{
char *pszEncodedVal = NULL;
const char *encoding;
char version_string[OWS_VERSION_MAXLEN];

if( version == NULL )
version = "1.0.0";

#if defined(USE_LIBXML2)
if( msOWSParseVersionString(version) >= OWS_2_0_0 )
return msWCSException20( map, code, locator, version );
return msWCSException20( map, code, locator, msOWSGetVersionString(msOWSParseVersionString(version), version_string) );
#endif

if( msOWSParseVersionString(version) >= OWS_1_1_0 )
return msWCSException11( map, code, locator, version );
return msWCSException11( map, code, locator, msOWSGetVersionString(msOWSParseVersionString(version), version_string) );

encoding = msOWSLookupMetadata(&(map->web.metadata), "CO", "encoding");
if (encoding)
Expand Down
2 changes: 1 addition & 1 deletion msautotest
Submodule msautotest updated from e6e8a6 to 4d7002

0 comments on commit 3181c28

Please sign in to comment.