diff options
-rw-r--r-- | libs/http/luasrc/http/protocol/conditionals.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/http/luasrc/http/protocol/conditionals.lua b/libs/http/luasrc/http/protocol/conditionals.lua index 36f323a6e5..f43429bbbf 100644 --- a/libs/http/luasrc/http/protocol/conditionals.lua +++ b/libs/http/luasrc/http/protocol/conditionals.lua @@ -58,6 +58,7 @@ function if_modified_since( req, stat ) return false, 304, { ["ETag"] = mk_etag( stat ); + ["Date"] = date.to_http( os.time() ); ["Last-Modified"] = date.to_http( stat.mtime ) } end @@ -79,6 +80,7 @@ function if_none_match( req, stat ) then return false, 304, { ["ETag"] = mk_etag( stat ); + ["Date"] = date.to_http( os.time() ); ["Last-Modified"] = date.to_http( stat.mtime ) } else |