Mercurial > prosody-hg
comparison net/http/server.lua @ 6607:64e6b88b6b21
Merge 0.9->0.10 (third time lucky)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 27 Mar 2015 22:11:58 +0000 |
| parents | a2dadaa9137f 015f2b4e2f9a |
| children | b6e558febb7a |
comparison
equal
deleted
inserted
replaced
| 6587:54306208f30b | 6607:64e6b88b6b21 |
|---|---|
| 216 return; | 216 return; |
| 217 end | 217 end |
| 218 | 218 |
| 219 local event = request.method.." "..host..request.path:match("[^?]*"); | 219 local event = request.method.." "..host..request.path:match("[^?]*"); |
| 220 local payload = { request = request, response = response }; | 220 local payload = { request = request, response = response }; |
| 221 log("debug", event); | 221 log("debug", "Firing event: %s", event); |
| 222 local result = events.fire_event(event, payload); | 222 local result = events.fire_event(event, payload); |
| 223 if result ~= nil then | 223 if result ~= nil then |
| 224 if result ~= true then | 224 if result ~= true then |
| 225 local body; | 225 local body; |
| 226 local result_type = type(result); | 226 local result_type = type(result); |
