Skip to content
Permalink
Browse files

fix #1915

  • Loading branch information
ralsina committed Jul 28, 2015
1 parent c7d6486 commit 7fa7899fe2bf0d72b9ea8af6d87219c958c508a4
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGES.txt
  2. +1 −1 nikola/plugins/command/auto/__init__.py
@@ -12,6 +12,7 @@ Features
Bugfixes
--------

* Don't assume things are HTML in auto mode (Issue #1915)
* Don’t rebuild Atom syndication files unnecessarily often
* Include .php files in sitemaps
* Retry all client errors (4xx) to HEAD as GET reques when checking remote links
@@ -279,7 +279,7 @@ def serve_static(self, environ, start_response):
uri = wsgiref.util.request_uri(environ)
p_uri = urlparse(uri)
f_path = os.path.join(self.site.config['OUTPUT_FOLDER'], *p_uri.path.split('/'))
mimetype = mimetypes.guess_type(uri)[0] or 'text/html'
mimetype = mimetypes.guess_type(uri)[0] or 'application/octet-stream'

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

0 comments on commit 7fa7899

Please sign in to comment.
You can’t perform that action at this time.