summaryrefslogtreecommitdiff
path: root/wsgitools
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools')
-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: