mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Merged revisions 112033 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r112033 | twilson | 2008-03-31 15:45:05 -0500 (Mon, 31 Mar 2008) | 2 lines Handle blank prefix= in http.conf ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@112034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -616,9 +616,9 @@ static struct ast_str *handle_uri(struct ast_tcptls_session_instance *ser, char
|
||||
if (redirect)
|
||||
goto cleanup;
|
||||
|
||||
/* We want requests to start with the prefix and '/' */
|
||||
/* We want requests to start with the (optional) prefix and '/' */
|
||||
l = strlen(prefix);
|
||||
if (l && !strncasecmp(uri, prefix, l) && uri[l] == '/') {
|
||||
if (!strncasecmp(uri, prefix, l) && uri[l] == '/') {
|
||||
uri += l + 1;
|
||||
/* scan registered uris to see if we match one. */
|
||||
AST_RWLIST_RDLOCK(&uris);
|
||||
|
Reference in New Issue
Block a user