mod_commands only send content-type on status when it really is http.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10714 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5a26e766f1
commit
ac8daf49c4
|
@ -704,13 +704,14 @@ SWITCH_STANDARD_API(status_function)
|
||||||
|
|
||||||
if (stream->param_event) {
|
if (stream->param_event) {
|
||||||
http = switch_event_get_header(stream->param_event, "http-host");
|
http = switch_event_get_header(stream->param_event, "http-host");
|
||||||
}
|
|
||||||
|
|
||||||
if ((var = switch_event_get_header(stream->param_event, "content-type"))) {
|
if ((var = switch_event_get_header(stream->param_event, "content-type"))) {
|
||||||
if (!strcasecmp(var, "text/plain")) {
|
if (!strcasecmp(var, "text/plain")) {
|
||||||
http = NULL;
|
http = NULL;
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (http) {
|
||||||
stream->write_function(stream, "%s", "Content-Type: text/html\n\n");
|
stream->write_function(stream, "%s", "Content-Type: text/html\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue