summaryrefslogtreecommitdiff
path: root/keystoneclient
diff options
context:
space:
mode:
authorDolph Mathews <dolph.mathews@gmail.com>2012-03-07 10:32:10 -0600
committerDolph Mathews <dolph.mathews@gmail.com>2012-03-07 10:32:32 -0600
commit9c07999dd5f5357fa7eee055fe9a4fdaa6a1a562 (patch)
tree280e2349a4686768b6ec5c63df6edf6edc0fa681 /keystoneclient
parent96a106e529e36298583701d7af5d33ba9a02bc72 (diff)
downloadpython-keystoneclient-9c07999dd5f5357fa7eee055fe9a4fdaa6a1a562.tar.gz
Removed ?fresh=nonsense (bug 936405)
Change-Id: I69f7411967ef23348854c206efc79a3cf7d3755d
Diffstat (limited to 'keystoneclient')
-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):