Software /
code /
prosody
Changeset
12886:686c3cdd4775
Merge 0.12->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 16 Feb 2023 16:00:07 +0000 |
parents | 12884:f5a75aaa8a25 (current diff) 12885:3a6dae39c70e (diff) |
children | 12888:b8504b71735d |
files | net/http/server.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/http/server.lua Fri Feb 10 00:37:05 2023 +0100 +++ b/net/http/server.lua Thu Feb 16 16:00:07 2023 +0000 @@ -428,6 +428,10 @@ 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;