Skip to content
Permalink
Browse files

Adjusted support for the mediatype multipart/related in WCS 2.0. Rela…

…ted to issue #4003.
  • Loading branch information...
Schpidi committed Aug 29, 2012
1 parent a8f89da commit 728faf887df58d84c51f895483bd98e5de629346
Showing with 4 additions and 3 deletions.
  1. +4 −3 mapwcs20.c
@@ -771,7 +771,8 @@ static int msWCSParseRequest20_XMLGetCoverage(
else if (EQUAL((char *) child->name, "Mediatype"))
{
char *content = (char *)xmlNodeGetContent(child);
if(content != NULL && EQUAL(content, "multipart/mixed"))
if(content != NULL && (EQUAL(content, "multipart/mixed")
|| EQUAL(content, "multipart/related")))
{
params->multipart = MS_TRUE;
}
@@ -2103,7 +2104,7 @@ static int msWCSWriteFile20(mapObj* map, imageObj* image, wcs20ParamsObjPtr para

multipart = MS_TRUE;
msIO_printf(
"Content-Type: multipart/mixed; boundary=wcs%c%c", 10, 10);
"Content-Type: multipart/related; boundary=wcs%c%c", 10, 10);
}

for( i = 0; i < count; i++ )
@@ -4108,7 +4109,7 @@ int msWCSGetCoverage20(mapObj *map, cgiRequestObj *request,

msWCSCommon20_CreateRangeType(layer, &cm, bandlist, psGmlNs, psGmlcovNs, psSweNs, psXLinkNs, psRootNode);

msIO_printf( "Content-Type: multipart/mixed; boundary=wcs%c%c"
msIO_printf( "Content-Type: multipart/related; boundary=wcs%c%c"
"--wcs\n", 10, 10);

msWCSWriteDocument20(map, psDoc);

0 comments on commit 728faf8

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