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}
This commit is contained in:
parent
34c0cbeb47
commit
9c8b02e12b
|
@ -2077,6 +2077,9 @@ SWITCH_STANDARD_APP(httapi_function)
|
|||
|
||||
if (!zstr(data)) {
|
||||
switch_event_create_brackets((char *)data, '{', '}', ',', ¶ms, &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_"))) {
|
||||
|
|
Loading…
Reference in New Issue