diff options
author | Kim Alvefur <zash@zash.se> | 2012-12-09 12:39:49 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-12-09 12:39:49 +0100 |
commit | df4609bd081697dde58c68cb99c44565fc457c8f (patch) | |
tree | 03956a8a9247babc607ab26b998b387ff6caf3cd /plugins/mod_http.lua | |
parent | ae8121e822f697715fe7c81d1c425fb7dc729a92 (diff) | |
parent | 3904cf00a1c09dad9b1938e031b6ebf4f39be5f7 (diff) | |
download | prosody-df4609bd081697dde58c68cb99c44565fc457c8f.tar.gz prosody-df4609bd081697dde58c68cb99c44565fc457c8f.zip |
Merge 0.9->trunk
Diffstat (limited to 'plugins/mod_http.lua')
-rw-r--r-- | plugins/mod_http.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index e73778ae..018f2ea3 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -88,7 +88,7 @@ function module.add_host(module) local data = handler; handler = function () return data; end elseif event_name:sub(-2, -1) == "/*" then - local base_path_len = #event_name:match("(/.+/)%*$")+1; + local base_path_len = #event_name:match("/.+$"); local _handler = handler; handler = function (event) local path = event.request.path:sub(base_path_len); |