提交 9c8b02e1 authored 作者: Anthony Minessale's avatar Anthony Minessale

if string outside of {} contains :// consider that input to mean the url such as…

if string outside of {} contains :// consider that input to mean the url such as {foo=bar}http://www.host.com/test.cgi vs {foo=bar,url=http://www.host.com/test.cgi}
上级 34c0cbeb
...@@ -2077,6 +2077,9 @@ SWITCH_STANDARD_APP(httapi_function) ...@@ -2077,6 +2077,9 @@ SWITCH_STANDARD_APP(httapi_function)
if (!zstr(data)) { if (!zstr(data)) {
switch_event_create_brackets((char *)data, '{', '}', ',', &params, &parsed, SWITCH_TRUE); switch_event_create_brackets((char *)data, '{', '}', ',', &params, &parsed, SWITCH_TRUE);
if (!switch_event_get_header(params, "url") && !zstr(parsed) && switch_stristr("://", parsed)) {
switch_event_add_header(params, SWITCH_STACK_BOTTOM, "url", parsed);
}
} }
if ((client = (client_t *) switch_channel_get_private(channel, "_HTTAPI_CLIENT_"))) { if ((client = (client_t *) switch_channel_get_private(channel, "_HTTAPI_CLIENT_"))) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论