[Freeswitch-trunk] [commit] r6497 - freeswitch/trunk/src/mod/applications/mod_commands

Freeswitch SVN anthm at freeswitch.org
Tue Dec 4 13:17:34 EST 2007


Author: anthm
Date: Tue Dec  4 13:17:33 2007
New Revision: 6497

Modified:
   freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c

Log:
minor tweaks

Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	Tue Dec  4 13:17:33 2007
@@ -49,6 +49,10 @@
 	char *key, *user, *domain;
 	char *xmlstr;
 
+	if (stream->event && switch_event_get_header(stream->event, "http-host")) {
+		stream->write_function(stream,  "Content-Type: text/xml\r\n\r\n");
+	}
+
     if (!cmd) {
 		stream->write_function(stream,  "bad args\n");
         goto end;



More information about the Freeswitch-trunk mailing list