mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-16 00:04:13 +00:00
improve http support
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6413 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
f2e9457936
commit
fc0dc1f9fb
6 files changed
+261
-21
No files matched your search
@@ -1566,6 +1566,8 @@ SWITCH_STANDARD_API(pa_cmd)
|
||||
stream->write_function(stream, "</pre>");
|
||||
#endif
|
||||
|
||||
stream->write_function(stream, "Content-type: text/html\n\n");
|
||||
|
||||
wcmd = switch_str_nil(switch_event_get_header(stream->event, "wcmd"));
|
||||
action = switch_event_get_header(stream->event, "action");
|
||||
|
||||
|
||||
@@ -1673,6 +1673,8 @@ SWITCH_STANDARD_API(pa_cmd)
|
||||
|
||||
|
||||
if (http) {
|
||||
stream->write_function(stream, "Content-type: text/html\n\n");
|
||||
|
||||
#if 0
|
||||
switch_event_header_t *hp;
|
||||
stream->write_function(stream, "<pre>");
|
||||
|
||||
Reference in new issue
Block a user