Commits

Joe Gregorio  committed 6fc8768

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

  • Participants
  • Parent commits fdeebd0

Comments (0)

Files changed (2)

File python2/httplib2/__init__.py

                 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)
 

File python3/httplib2/__init__.py

                 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)