# HG changeset patch # User Kim Alvefur # Date 1345575800 -7200 # Node ID a89f8f2f2943690748a9db4fc156cfd85d2447a2 # Parent dbc483d06a07bd0e52b6b11b7d720474d18cc61d mod_http: Don't produce paths with double / if a module is set to serve / diff -r dbc483d06a07 -r a89f8f2f2943 plugins/mod_http.lua --- a/plugins/mod_http.lua Tue Aug 21 18:03:40 2012 +0200 +++ b/plugins/mod_http.lua Tue Aug 21 21:03:20 2012 +0200 @@ -30,6 +30,9 @@ 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