mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 20:47:06 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11099 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
d6290803ac
commit
f813ebe087
2 files changed
+11
-3
No files matched your search
@@ -3895,7 +3895,7 @@ SWITCH_STANDARD_API(conf_api_main)
|
||||
{
|
||||
char *lbuf = NULL;
|
||||
switch_status_t status = SWITCH_STATUS_SUCCESS;
|
||||
char *http = NULL;
|
||||
char *http = NULL, *type = NULL;
|
||||
int argc;
|
||||
char *argv[25] = { 0 };
|
||||
|
||||
@@ -3905,11 +3905,14 @@ SWITCH_STANDARD_API(conf_api_main)
|
||||
|
||||
if (stream->param_event) {
|
||||
http = switch_event_get_header(stream->param_event, "http-host");
|
||||
type = switch_event_get_header(stream->param_event, "content-type");
|
||||
}
|
||||
|
||||
if (http) {
|
||||
/* Output must be to a web browser */
|
||||
stream->write_function(stream, "<pre>\n");
|
||||
if (type && !strcasecmp(type, "text/html")) {
|
||||
stream->write_function(stream, "<pre>\n");
|
||||
}
|
||||
}
|
||||
|
||||
if (!(lbuf = strdup(cmd))) {
|
||||
|
||||
Reference in new issue
Block a user