Author oulenz
Recipients agnosticdev, oulenz
Date 2018-03-30.17:22:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522430577.89.0.467229070634.issue33181@psf.upfronthosting.co.za>
In-reply-to
Content
That would definitely take the sting out of that permanent redirect. But I am still wondering why we redirect at all. Why not leave redirects to the user and do:

if os.path.isdir(path):
    if not path.endswith('/'):
        path = path + '/'
    for index in "index.html", "index.htm":
        index = os.path.join(path, index)
        if os.path.exists(index):
            path = index
            break
History
Date User Action Args
2018-03-30 17:22:57oulenzsetrecipients: + oulenz, agnosticdev
2018-03-30 17:22:57oulenzsetmessageid: <1522430577.89.0.467229070634.issue33181@psf.upfronthosting.co.za>
2018-03-30 17:22:57oulenzlinkissue33181 messages
2018-03-30 17:22:57oulenzcreate