summaryrefslogtreecommitdiff
path: root/pecan/middleware
diff options
context:
space:
mode:
authorRyan Petrello <lists@ryanpetrello.com>2012-03-23 13:18:50 -0400
committerRyan Petrello <lists@ryanpetrello.com>2012-03-23 13:18:50 -0400
commitbd9b615c97b4f31ec99763540f2941d7f3532170 (patch)
tree9ad2411e9cba31ba7caf4b1c3da38fb44f287c9c /pecan/middleware
parentbf22e788f86682d399e2d6f23cb874949e1bbfa0 (diff)
downloadpecan-bd9b615c97b4f31ec99763540f2941d7f3532170.tar.gz
Disabling the static file middleware if ``conf.app.debug`` is True.
This is an effort to prevent people from using the static file middleware in production (instead of a proxy server, like nginx).
Diffstat (limited to 'pecan/middleware')
-rw-r--r--pecan/middleware/static.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pecan/middleware/static.py b/pecan/middleware/static.py
index 78b58c6..c68bce7 100644
--- a/pecan/middleware/static.py
+++ b/pecan/middleware/static.py
@@ -88,7 +88,7 @@ def http_date(timestamp=None):
return _dump_date(timestamp, ' ')
-class SharedDataMiddleware(object):
+class StaticFileMiddleware(object):
"""A WSGI middleware that provides static content for development
environments.