mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-04 07:07:55 +00:00
MODAPP-397
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16656 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
36542c2625
commit
248745f2ca
@ -578,10 +578,10 @@ abyss_bool handler_hook(TSession * r)
|
|||||||
stream.write_function = http_stream_write;
|
stream.write_function = http_stream_write;
|
||||||
stream.raw_write_function = http_stream_raw_write;
|
stream.raw_write_function = http_stream_raw_write;
|
||||||
|
|
||||||
if (!r || !r->requestInfo.uri || !r->requestInfo.user) {
|
if (!r || !r->requestInfo.uri) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((command = strstr(r->requestInfo.uri, "/api/"))) {
|
if ((command = strstr(r->requestInfo.uri, "/api/"))) {
|
||||||
command += 5;
|
command += 5;
|
||||||
} else if ((command = strstr(r->requestInfo.uri, "/webapi/"))) {
|
} else if ((command = strstr(r->requestInfo.uri, "/webapi/"))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user