[mapserver-commits] r10973 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Tue Feb 8 16:49:55 EST 2011
Author: warmerdam
Date: 2011-02-08 13:49:55 -0800 (Tue, 08 Feb 2011)
New Revision: 10973
Modified:
trunk/mapserver/mapwcs20.c
Log:
force multipart output if we have multiple output files but we dont have to include the gml summary (#3666)
Modified: trunk/mapserver/mapwcs20.c
===================================================================
--- trunk/mapserver/mapwcs20.c 2011-02-08 21:17:01 UTC (rev 10972)
+++ trunk/mapserver/mapwcs20.c 2011-02-08 21:49:55 UTC (rev 10973)
@@ -1975,8 +1975,15 @@
/* -------------------------------------------------------------------- */
count = CSLCount(all_files);
- msDebug("%s\n", all_files[0]);
+ if(count > 1 && multipart == MS_FALSE)
+ {
+ msDebug( "msWCSWriteFile20(): force multipart output without gml summary because we have multiple files in the result.\n" );
+ multipart = MS_TRUE;
+ msIO_printf(
+ "Content-Type: multipart/mixed; boundary=wcs%c%c", 10, 10);
+ }
+
for( i = 0; i < count; i++ )
{
const char *mimetype = NULL;
More information about the mapserver-commits
mailing list