Commit 3d6e3f1b authored by Leonard Marschke's avatar Leonard Marschke

fix #1

parent 40cc030e
#!/usr/bin/env python
import socket
import os.path
import time
import time, pytz
from datetime import datetime
import sys
from mimetypes import MimeTypes
......@@ -34,7 +34,7 @@ def response(conn, code, content, contentType = 'text/html', modified = None):
try:
#send a couple of headers
conn.send("HTTP/1.1 " + code + "\n")
conn.send("Date: " + time.strftime('%a, %d %b %Y %H:%M:%S GMT' + "\n"))
conn.send("Date: " + time.strftime('%a, %d %b %Y %H:%M:%S GMT' + "\n", time.gmtime()))
conn.send("Server: MarServ version 0.0.0.0.0.0.0.0.1\n")
conn.send("Connection: close\n")
if isinstance(contentType, str):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment