summaryrefslogtreecommitdiff
path: root/python2
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 /python2
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 'python2')
-rw-r--r--python2/httplib2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py
index f16882f..1eeed30 100644
--- a/python2/httplib2/__init__.py
+++ b/python2/httplib2/__init__.py
@@ -1148,7 +1148,7 @@ a string that contains the response entity body.
headers = self._normalize_headers(headers)
if not headers.has_key('user-agent'):
- headers['user-agent'] = "Python-httplib2/%s" % __version__
+ headers['user-agent'] = "Python-httplib2/%s (gzip)" % __version__
uri = iri2uri(uri)