aboutsummaryrefslogtreecommitdiffstats
path: root/main/http.c
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-31 20:55:40 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-31 20:55:40 +0000
commite62ebb415054d6bc9adc4667b396d370eb463e78 (patch)
tree03cddf90e50b1de43b84ddacce6f5ab949821f61 /main/http.c
parent8bbfb7a6fee6411a8eb58c8b7bb73e82057e84da (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@112034 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/http.c b/main/http.c
index 13dfb5e72..806b3447e 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);