*** SimpleHTTPServer.py-orig 2003-10-20 22:11:39.000000000 -0500 --- SimpleHTTPServer.py 2003-10-21 09:12:02.000000000 -0500 *************** *** 63,68 **** --- 63,74 ---- path = self.translate_path(self.path) f = None if os.path.isdir(path): + if self.path[-1:] != '/': + # redirect browser - doing basically what apache does + self.send_response(301) + self.send_header("Location", self.path + "/") + self.end_headers() + return None for index in "index.html", "index.htm": index = os.path.join(path, index) if os.path.exists(index):