Fix comment on way indexes are loaded

Change-Id: If7b5abe616b6132d9eea7c6918af383ef62589b3
This commit is contained in:
Joshua Hesketh 2015-08-04 13:10:48 +10:00
parent 6d7e65df3d
commit 3e59f98a01
1 changed files with 1 additions and 2 deletions

View File

@ -217,8 +217,7 @@ def get_file_generator(environ, root_path, config=None):
else:
# NOTE(jhesketh): If the requested URL ends in a trailing slash we
# assume that this is meaning to load an index.html from our pseudo
# filesystem. This means we should't store objects with a trailing
# slash in their name as os-loganalzye won't load them.
# filesystem and attempt that first.
if logname[-1] == '/':
file_generator = SwiftIterableBuffer(
os.path.join(logname, 'index.html'), config)