aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_http.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index 3dcb14d7..6da4db24 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -19,10 +19,11 @@ end
local function get_http_event(host, app_path, key)
local method, path = key:match("^(%S+)%s+(.+)$");
- if not method and key:sub(1,1) == "/" then
+ if not method then
+ if key:sub(1,1) ~= "/" then
+ return nil;
+ end
method, path = "GET", key;
- else
- return nil;
end
path = normalize_path(path);
return method:upper().." "..host..app_path..path;