libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1239469 - /libcloud/trunk/libcloud/common/base.py
Date Thu, 02 Feb 2012 06:51:17 GMT
Author: tomaz
Date: Thu Feb  2 06:51:17 2012
New Revision: 1239469

URL: http://svn.apache.org/viewvc?rev=1239469&view=rev
Log:
Send Accept-Encoding header.

Modified:
    libcloud/trunk/libcloud/common/base.py

Modified: libcloud/trunk/libcloud/common/base.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/common/base.py?rev=1239469&r1=1239468&r2=1239469&view=diff
==============================================================================
--- libcloud/trunk/libcloud/common/base.py (original)
+++ libcloud/trunk/libcloud/common/base.py Thu Feb  2 06:51:17 2012
@@ -495,6 +495,9 @@ class Connection(object):
         # We always send a user-agent header
         headers.update({'User-Agent': self._user_agent()})
 
+        # Indicate that support gzip and deflate compression
+        headers.update({'Accept-Encoding': 'gzip,deflate'})
+
         p = int(self.port)
 
         if p not in (80, 443):



Mime
View raw message