diff options
author | Robert Brewer <fumanchu@aminus.org> | 2006-06-27 17:11:19 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2006-06-27 17:11:19 +0000 |
commit | a05e92bff09c989a0c52f4554d90d7541f32e186 (patch) | |
tree | 14a5ca3d10bd26da74ca3d52b2acd5a717394133 /cherrypy/lib/caching.py | |
parent | 2ef575bc240b40f7cc37d1b56716ee70bcb9c8dc (diff) | |
download | cherrypy-git-a05e92bff09c989a0c52f4554d90d7541f32e186.tar.gz |
Renamed lib.encodings to lib.encoding to avoid shadowing the builtin.
Diffstat (limited to 'cherrypy/lib/caching.py')
-rw-r--r-- | cherrypy/lib/caching.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cherrypy/lib/caching.py b/cherrypy/lib/caching.py index c1187634..3f70b62f 100644 --- a/cherrypy/lib/caching.py +++ b/cherrypy/lib/caching.py @@ -103,8 +103,9 @@ def init(cache_class=None): def get(): # Ignore POST, PUT, DELETE. # See http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.10. - if cherrypy.request.method in cherrypy.config.get("tools.caching.invalid_methods", - ("POST", "PUT", "DELETE")): + invalid = cherrypy.config.get("tools.caching.invalid_methods", + ("POST", "PUT", "DELETE")) + if cherrypy.request.method in invalid: cherrypy.request.cached = c = False else: cacheData = cherrypy._cache.get() |