diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2012-03-23 13:18:50 -0400 |
---|---|---|
committer | Ryan Petrello <lists@ryanpetrello.com> | 2012-03-23 13:18:50 -0400 |
commit | bd9b615c97b4f31ec99763540f2941d7f3532170 (patch) | |
tree | 9ad2411e9cba31ba7caf4b1c3da38fb44f287c9c /pecan/middleware | |
parent | bf22e788f86682d399e2d6f23cb874949e1bbfa0 (diff) | |
download | pecan-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.py | 2 |
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. |