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
1.6.0
Terry Wilson 17 years ago
parent d265edff9f
commit 8991cce7b4

@ -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);

Loading…
Cancel
Save