Skip to content

Commit

Permalink
fix #1933
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Aug 7, 2015
1 parent d329bff commit 412223e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -11,6 +11,7 @@ Features
Bugfixes
--------

* Handle folders without trailing slashes in nikola auto (Issue #1933)
* Set a base element to aid relative URL resolution, stripped on-the-fly
when using the auto or serve command to view site locally. (Issue #1922)
* Rebuild archives when post slugs and titles change (Issue #1931)
Expand Down
1 change: 1 addition & 0 deletions nikola/plugins/command/auto/__init__.py
Expand Up @@ -294,6 +294,7 @@ def serve_static(self, environ, start_response):

if os.path.isdir(f_path):
f_path = os.path.join(f_path, self.site.config['INDEX_FILE'])
mimetype = 'text/html'

if p_uri.path == '/robots.txt':
start_response('200 OK', [('Content-type', 'text/plain')])
Expand Down

0 comments on commit 412223e

Please sign in to comment.