summaryrefslogtreecommitdiff
path: root/python3/httplib2
diff options
context:
space:
mode:
authorJoe Gregorio <jcgregorio@google.com>2011-05-31 15:50:27 -0400
committerJoe Gregorio <jcgregorio@google.com>2011-05-31 15:50:27 -0400
commitacbd01caa30bf83856fa3fb68b08e8bc446c0065 (patch)
tree788693494823634a75717ff6d226e8a496c4bcfe /python3/httplib2
parent788543e3e07fa8527b58cce6f719b1e3cdaa7310 (diff)
downloadhttplib2-acbd01caa30bf83856fa3fb68b08e8bc446c0065.tar.gz
Add gzip to the user-agent, in case we are making a request to an app engine project: http://code.google.com/appengine/kb/general.html#compression
Diffstat (limited to 'python3/httplib2')
-rw-r--r--python3/httplib2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python3/httplib2/__init__.py b/python3/httplib2/__init__.py
index 9c48d8f..1599e68 100644
--- a/python3/httplib2/__init__.py
+++ b/python3/httplib2/__init__.py
@@ -1037,7 +1037,7 @@ a string that contains the response entity body.
headers = self._normalize_headers(headers)
if 'user-agent' not in headers:
- headers['user-agent'] = "Python-httplib2/%s" % __version__
+ headers['user-agent'] = "Python-httplib2/%s (gzip)" % __version__
uri = iri2uri(uri)