diff options
author | Helmut Grohne <helmut@subdivi.de> | 2010-09-04 20:26:01 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2010-09-04 20:26:01 +0200 |
commit | 70cd24ed9ff540ac466cfe367d43d4ee8b7068bb (patch) | |
tree | 4ccfb86ea96408f448ca3a893f7af30b19522c25 /wsgitools | |
parent | 86935b4ee3c46374d061522f0c53e40d94e9a24d (diff) | |
download | wsgitools-70cd24ed9ff540ac466cfe367d43d4ee8b7068bb.tar.gz |
middlewares.CachingMiddleware: include request method in key
Diffstat (limited to 'wsgitools')
-rw-r--r-- | wsgitools/middlewares.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wsgitools/middlewares.py b/wsgitools/middlewares.py index 09d4cfe..60cab6b 100644 --- a/wsgitools/middlewares.py +++ b/wsgitools/middlewares.py @@ -223,7 +223,8 @@ class CachingMiddleware: assert isinstance(environ, dict) if not self.storable(environ): return self.app(environ, start_response) - path = environ.get("SCRIPT_NAME", "/") + path = environ.get("REQUEST_METHOD", "GET") + " " + path += environ.get("SCRIPT_NAME", "/") path += environ.get("PATH_INFO", '') path += "?" + environ.get("QUERY_STRING", "") if self.cacheable(environ) and path in self.cache: |