aboutsummaryrefslogtreecommitdiffstats
path: root/net/http
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
commitc6540b14f9fbd99a42d00ac616bc48ff0b146690 (patch)
tree27666a6c80dca62134dbb3a1d9d574ba01809ff1 /net/http
parent2fcacff9a7bda9059242c66fe7a694d95dc24cb9 (diff)
downloadprosody-c6540b14f9fbd99a42d00ac616bc48ff0b146690.tar.gz
prosody-c6540b14f9fbd99a42d00ac616bc48ff0b146690.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/http')
-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);