This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author agnosticdev
Recipients agnosticdev, oulenz
Date 2018-03-30.17:33:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522431200.9.0.467229070634.issue33181@psf.upfronthosting.co.za>
In-reply-to
Content
It looks like the 301 redirect is in place to emulate the behavior that Apache provides when it runs into a trailing slash.  This is observed when this condition is met:

parts = urllib.parse.urlsplit(self.path)
if not parts.path.endswith('/'):

Apache Directory Index Redirect:
http://httpd.apache.org/docs/current/mod/mod_dir.html#DirectoryIndexRedirect
History
Date User Action Args
2018-03-30 17:33:20agnosticdevsetrecipients: + agnosticdev, oulenz
2018-03-30 17:33:20agnosticdevsetmessageid: <1522431200.9.0.467229070634.issue33181@psf.upfronthosting.co.za>
2018-03-30 17:33:20agnosticdevlinkissue33181 messages
2018-03-30 17:33:20agnosticdevcreate