mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Change order of SUFFIXES so index.html is served even if a file named '.html' exists.
A file named .html should not exist in output. But somehow I ended up with one, and it was difficult to debug. Changing the order of the SUFFIXES allows the index.html file to be served before checking for .html.
This commit is contained in:
parent
bb0ed26fdd
commit
cbf2d901a6
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ def parse_arguments():
|
|||
|
||||
|
||||
class ComplexHTTPRequestHandler(server.SimpleHTTPRequestHandler):
|
||||
SUFFIXES = [".html", "/index.html", "/", ""]
|
||||
SUFFIXES = ["/index.html",".html", "/", ""]
|
||||
|
||||
extensions_map = {
|
||||
**server.SimpleHTTPRequestHandler.extensions_map,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue