From 76c09d2ad1a5affdad1aec884bc84bac26d62496 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 21 Aug 2012 21:03:20 +0200 Subject: mod_http: Don't produce paths with double / if a module is set to serve / --- plugins/mod_http.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') 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 -- cgit v1.2.3