Software /
code /
prosody
Diff
net/http/server.lua @ 9335:2dc7490899ae
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 21 Sep 2018 21:19:41 +0200 |
parent | 8362:c7d6c2558a24 |
child | 9337:5d6b252bc36f |
line wrap: on
line diff
--- a/net/http/server.lua Fri Sep 21 15:34:45 2018 +0200 +++ b/net/http/server.lua Fri Sep 21 21:19:41 2018 +0200 @@ -233,7 +233,7 @@ 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);