author | Matthew Wild <mwild1@gmail.com> |
Wed, 09 Dec 2020 13:54:21 +0000 | |
changeset 11224 | 9b25eecde9e6 |
parent 11223 | 586a6ed6b0a6 |
child 11225 | b0a563716334 |
net/http.lua | file | annotate | diff | comparison | revisions |
--- a/net/http.lua Tue Dec 08 20:35:53 2020 +0100 +++ b/net/http.lua Wed Dec 09 13:54:21 2020 +0000 @@ -24,6 +24,7 @@ local pairs = pairs; local tonumber, tostring, traceback = tonumber, tostring, debug.traceback; +local os_time = os.time; local xpcall = require "util.xpcall".xpcall; local error = error @@ -221,6 +222,7 @@ req.url = u; req.http = self; + req.time = os_time(); if not req.path then req.path = "/";