aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-21 21:19:41 +0200
committerKim Alvefur <zash@zash.se>2018-09-21 21:19:41 +0200
commit245cf9bfbfb09aee6238a6e50cd6bd8016661b30 (patch)
tree27666a6c80dca62134dbb3a1d9d574ba01809ff1 /net
parentd68f852f3b28e48e56fd205fe31015fc3a591cc2 (diff)
downloadprosody-245cf9bfbfb09aee6238a6e50cd6bd8016661b30.tar.gz
prosody-245cf9bfbfb09aee6238a6e50cd6bd8016661b30.zip
net.http.server: Move handling of hosts to mod_http
Now an event like `GET /path` is fired at first, and mod\_http dispatches the old `GET host/path` events.
Diffstat (limited to 'net')
-rw-r--r--net/http/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index 877c7f17..a982d53f 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -233,7 +233,7 @@ function handle_request(conn, request, finish_cb)
return;
end
- local event = request.method.." "..host..request.path:match("[^?]*");
+ local event = request.method.." "..request.path:match("[^?]*");
local payload = { request = request, response = response };
log("debug", "Firing event: %s", event);
local result = events.fire_event(event, payload);