diff options
author | Kim Alvefur <zash@zash.se> | 2012-08-21 21:03:20 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-08-21 21:03:20 +0200 |
commit | 958f6dc50ef6591fd9d75fc4476170a84e57ceef (patch) | |
tree | 82e468e214860e9395d109a13889760619dc8de6 /plugins/mod_http.lua | |
parent | bdd4cc043ce421e8064551b5cce5d733f3d5a5ed (diff) | |
download | prosody-958f6dc50ef6591fd9d75fc4476170a84e57ceef.tar.gz prosody-958f6dc50ef6591fd9d75fc4476170a84e57ceef.zip |
mod_http: Don't produce paths with double / if a module is set to serve /
Diffstat (limited to 'plugins/mod_http.lua')
-rw-r--r-- | plugins/mod_http.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index 53993f29..b36ddb4d 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -30,6 +30,9 @@ local function get_http_event(host, app_path, key) if method:sub(1,1) == "/" then return nil; end + if app_path == "/" and path:sub(1,1) == "/" then + app_path = ""; + end return method:upper().." "..host..app_path..path; end |