[mapguide-commits] r7759 - sandbox/jng/streaming_v2/Web/src/HttpHandler

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sun Aug 11 08:12:25 PDT 2013


Author: jng
Date: 2013-08-11 08:12:25 -0700 (Sun, 11 Aug 2013)
New Revision: 7759

Modified:
   sandbox/jng/streaming_v2/Web/src/HttpHandler/HttpSelectFeatures.cpp
   sandbox/jng/streaming_v2/Web/src/HttpHandler/HttpSelectFeaturesSpatially.cpp
Log:
Set the mime type on our byte source adapter

Modified: sandbox/jng/streaming_v2/Web/src/HttpHandler/HttpSelectFeatures.cpp
===================================================================
--- sandbox/jng/streaming_v2/Web/src/HttpHandler/HttpSelectFeatures.cpp	2013-08-11 14:50:04 UTC (rev 7758)
+++ sandbox/jng/streaming_v2/Web/src/HttpHandler/HttpSelectFeatures.cpp	2013-08-11 15:12:25 UTC (rev 7759)
@@ -109,6 +109,7 @@
     ByteSourceImpl* bsImpl = new MgReaderByteSourceImpl(featureReader, m_responseFormat);
 
     Ptr<MgByteSource> byteSource = new MgByteSource(bsImpl);
+    byteSource->SetMimeType(m_responseFormat);
     Ptr<MgByteReader> byteReader = byteSource->GetReader();
     hResult->SetResultObject(byteReader, m_responseFormat);
 

Modified: sandbox/jng/streaming_v2/Web/src/HttpHandler/HttpSelectFeaturesSpatially.cpp
===================================================================
--- sandbox/jng/streaming_v2/Web/src/HttpHandler/HttpSelectFeaturesSpatially.cpp	2013-08-11 14:50:04 UTC (rev 7758)
+++ sandbox/jng/streaming_v2/Web/src/HttpHandler/HttpSelectFeaturesSpatially.cpp	2013-08-11 15:12:25 UTC (rev 7759)
@@ -119,6 +119,7 @@
     ByteSourceImpl* bsImpl = new MgReaderByteSourceImpl(dataReader, m_responseFormat);
 
     Ptr<MgByteSource> byteSource = new MgByteSource(bsImpl);
+    byteSource->SetMimeType(m_responseFormat);
     Ptr<MgByteReader> byteReader = byteSource->GetReader();
     hResult->SetResultObject(byteReader, m_responseFormat);
 



More information about the mapguide-commits mailing list