From acbd01caa30bf83856fa3fb68b08e8bc446c0065 Mon Sep 17 00:00:00 2001 From: Joe Gregorio Date: Tue, 31 May 2011 15:50:27 -0400 Subject: 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 --- python2/httplib2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python2/httplib2/__init__.py') 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) -- cgit v1.2.1