Ticket #163 (new enhancement)

Opened 5 years ago

Last modified 5 years ago

index.html is hardcoded in StaticURLParser

Reported by: dottedmag Owned by: ianb
Priority: normal Milestone:
Component: paste Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

As said in paste/urlparser.py:

# @@: This should obviously be configurable filename = 'index.html'

Attached patch makes directory index configurable in StaticURLParser and PkgResourcesParser?.

Attachments

add-configurable-directory-index.patch Download (5.7 KB) - added by dottedmag 5 years ago.

Change History

Changed 5 years ago by dottedmag

Changed 5 years ago by dottedmag

Err... '404 Not Found' seems to be not a best idea for 'no index' case :) '403 Forbidden' should be more apropriate here.

Note: See TracTickets for help on using tickets.