summaryrefslogtreecommitdiff
path: root/keystoneclient/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'keystoneclient/client.py')
-rw-r--r--keystoneclient/client.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/keystoneclient/client.py b/keystoneclient/client.py
index 9bf595d..3042d09 100644
--- a/keystoneclient/client.py
+++ b/keystoneclient/client.py
@@ -162,23 +162,7 @@ class HTTPClient(httplib2.Http):
except exceptions.Unauthorized:
raise
- def _munge_get_url(self, url):
- """
- Munge GET URLs to always return uncached content.
-
- The OpenStack Compute API caches data *very* agressively and doesn't
- respect cache headers. To avoid stale data, then, we append a little
- bit of nonsense onto GET parameters; this appears to force the data not
- to be cached.
- """
- scheme, netloc, path, query, frag = urlparse.urlsplit(url)
- query = urlparse.parse_qsl(query)
- query.append(('fresh', str(time.time())))
- query = urllib.urlencode(query)
- return urlparse.urlunsplit((scheme, netloc, path, query, frag))
-
def get(self, url, **kwargs):
- url = self._munge_get_url(url)
return self._cs_request(url, 'GET', **kwargs)
def post(self, url, **kwargs):