mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-16 17:33:08 +09:00
7 lines
387 B
Python
7 lines
387 B
Python
def main(request, response):
|
|
import datetime, os
|
|
srcpath = os.path.join(os.path.dirname(__file__), "well-formed.xml")
|
|
srcmoddt = datetime.datetime.fromtimestamp(os.path.getmtime(srcpath))
|
|
response.headers.set("Last-Modified", srcmoddt.strftime("%a, %d %b %Y %H:%M:%S GMT"))
|
|
response.headers.set("Content-Type", "application/xml")
|
|
return open(srcpath, "r").read()
|