summaryrefslogtreecommitdiff
path: root/wsgitools/middlewares.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2010-09-04 20:26:01 +0200
committerHelmut Grohne <helmut@subdivi.de>2010-09-04 20:26:01 +0200
commit70cd24ed9ff540ac466cfe367d43d4ee8b7068bb (patch)
tree4ccfb86ea96408f448ca3a893f7af30b19522c25 /wsgitools/middlewares.py
parent86935b4ee3c46374d061522f0c53e40d94e9a24d (diff)
downloadwsgitools-70cd24ed9ff540ac466cfe367d43d4ee8b7068bb.tar.gz
middlewares.CachingMiddleware: include request method in key
Diffstat (limited to 'wsgitools/middlewares.py')
-rw-r--r--wsgitools/middlewares.py3
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: