minor tweaks

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6496 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-12-04 18:10:04 +00:00
parent 352b37c234
commit 85d374dbd7
2 changed files with 12 additions and 1 deletions

View File

@@ -110,6 +110,11 @@ SWITCH_STANDARD_API(xml_locate_function)
goto end;
}
if (stream->event && switch_event_get_header(stream->event, "http-host")) {
stream->write_function(stream, "Content-Type: text/xml\r\n\r\n");
}
mydata = strdup(cmd);
assert(mydata);