[Patches] [ python-Patches-827561 ] SimpleHTTPServer directory-indexing "bug" fix

SourceForge.net noreply at sourceforge.net
Wed Oct 22 12:01:31 EDT 2003


Patches item #827561, was opened at 2003-10-21 16:50
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=827561&group_id=5470

Category: Library (Lib)
Group: Python 2.2.x
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Chris Gonnerman (solomoriah)
Assigned to: Nobody/Anonymous (nobody)
Summary: SimpleHTTPServer directory-indexing "bug" fix

Initial Comment:
The SimpleHTTPServer.py module, when presented with a
URL of the form:

      http://some.site.com/directory

should redirect the browser to:

      http://some.site.com/directory/

This is evidently a standard behavior of major
webservers (Apache and IIS at least).  SimpleHTTPServer
does not do this, but fortunately it is simple to
implement (patch attached, naturally).

I am providing a fix for 2.2 but this problem appears
to be in earlier versions, and is also in 2.3.  This
patch appears to work fine for 2.3.



----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-10-22 18:01

Message:
Logged In: YES 
user_id=21627

Duplicate of 827559.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=827561&group_id=5470



More information about the Patches mailing list