[xiph-commits] r8820 - trunk/oggdsf/src/tools/mod_oggchef

ozone at motherfish-iii.xiph.org ozone at motherfish-iii.xiph.org
Tue Feb 1 21:03:07 PST 2005


Author: ozone
Date: 2005-02-01 21:03:05 -0800 (Tue, 01 Feb 2005)
New Revision: 8820

Modified:
   trunk/oggdsf/src/tools/mod_oggchef/mod_oggchef.cpp
Log:
oggdsf:
 * mod_oggchef now sends back the correct MIME type in the HTTP response header if outputting CMML when requesting a .anx resource



Modified: trunk/oggdsf/src/tools/mod_oggchef/mod_oggchef.cpp
===================================================================
--- trunk/oggdsf/src/tools/mod_oggchef/mod_oggchef.cpp	2005-02-01 14:23:23 UTC (rev 8819)
+++ trunk/oggdsf/src/tools/mod_oggchef/mod_oggchef.cpp	2005-02-02 05:03:05 UTC (rev 8820)
@@ -231,6 +231,9 @@
 	IRecomposer *locRecomposer = NULL;
 	if (isAnnodexFile(locFilename)) {
 		locRecomposer = new AnnodexRecomposer(locFilename, httpDataSender, inRequest, locCachedSeekTableFilename);
+		if (wantOnlyCMML(locOutputMIMETypes)) {
+			inRequest->content_type = "text/x-cmml";
+		}
 	} else if (isOggFile(locFilename)) {
 		//locRecomposer = new OggRecomposer(locOutputMIMETypes);
 	} else if (isCMMLFile(locFilename)) {



More information about the commits mailing list