aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-02-16 16:00:07 +0000
committerMatthew Wild <mwild1@gmail.com>2023-02-16 16:00:07 +0000
commit424a33445072c34d1239da75b7faa2d6276a2ebd (patch)
tree3ed375f01d7a5002b824d213f599834fc3ca8270 /net
parentbf35a39a15c0b092517943936779baf0297e1248 (diff)
parentbc1e51eb8357bcb377f6010b79bd15607286302c (diff)
downloadprosody-424a33445072c34d1239da75b7faa2d6276a2ebd.tar.gz
prosody-424a33445072c34d1239da75b7faa2d6276a2ebd.zip
Merge 0.12->trunk
Diffstat (limited to 'net')
-rw-r--r--net/http/server.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index bc655ab1..e15165c2 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -428,6 +428,10 @@ end
function _M.set_option(name, value)
options[name] = value;
end
+function _M.get_request_from_conn(conn)
+ local response = conn and conn._http_open_response;
+ return response and response.request or nil;
+end
_M.listener = listener;
_M.codes = codes;