diff MoinMoin/server/standalone.py @ 15:5a2a8201bb6f

make moin friendlier to proxies, thanks to ASF imported from: moin--main--1.5--patch-16
author Thomas Waldmann <tw@waldmann-edv.de>
date Fri, 23 Sep 2005 20:02:07 +0000
parents 77665d8e2254
children 2202f548cbb0
line wrap: on
line diff
--- a/MoinMoin/server/standalone.py	Fri Sep 23 19:27:45 2005 +0000
+++ b/MoinMoin/server/standalone.py	Fri Sep 23 20:02:07 2005 +0000
@@ -37,12 +37,12 @@
 # Imports
 import os, sys, time, urllib, socket, errno, shutil
 import BaseHTTPServer, SimpleHTTPServer, SocketServer
-from email.Utils import formatdate
 
 # MoinMoin imports
 from MoinMoin import version
 from MoinMoin.server import Config, switchUID
 from MoinMoin.request import RequestStandAlone
+from MoinMoin.util.datetime import formathttpdate
 
 # Server globals
 httpd = None
@@ -371,7 +371,7 @@
         if self.expires:
             now = time.time()
             expires = now + self.expires
-            self.send_header('Expires', formatdate(expires))
+            self.send_header('Expires', formathttpdate(expires))
         SimpleHTTPServer.SimpleHTTPRequestHandler.end_headers(self)
         
     def copyfile(self, source, outputfile):