From 8991cce7b49fd5e9de2ed01a9e672e471576909a Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Mon, 31 Mar 2008 20:55:40 +0000 Subject: [PATCH] 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 --- main/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/http.c b/main/http.c index 13dfb5e72e..806b3447e8 100644 --- a/main/http.c +++ b/main/http.c @@ -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);