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 --- python3/httplib2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python3') 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) -- cgit v1.2.1