All pastes #509894 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-25 18:02 UTC
rendered paste body
if (check_path(lighty.env["physical.path"])) then
    attr = lighty.stat(lighty.env["physical.path"])
    lighty.content = {{ filename = lighty.env["physical.path"] }}
    lighty.header["Content-Type"] = attr["content-type"]
    return 200
end