You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/10/01 09:44:30 UTC

libcloud git commit: Added comment on add_default_headers method. Closes #881

Repository: libcloud
Updated Branches:
  refs/heads/trunk c24e702c2 -> 35c1965f5


Added comment on add_default_headers method.
Closes #881


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/35c1965f
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/35c1965f
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/35c1965f

Branch: refs/heads/trunk
Commit: 35c1965f5316302dfd63616a90f488f2b12f7da8
Parents: c24e702
Author: lpkearns <lo...@gmail.com>
Authored: Sat Oct 1 00:22:03 2016 -0700
Committer: Anthony Shaw <an...@apache.org>
Committed: Sat Oct 1 19:44:19 2016 +1000

----------------------------------------------------------------------
 libcloud/common/google.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/35c1965f/libcloud/common/google.py
----------------------------------------------------------------------
diff --git a/libcloud/common/google.py b/libcloud/common/google.py
index 74bb528..52577b8 100644
--- a/libcloud/common/google.py
+++ b/libcloud/common/google.py
@@ -344,6 +344,9 @@ class GoogleBaseAuthConnection(ConnectionUserAndKey):
         super(GoogleBaseAuthConnection, self).__init__(user_id, key, **kwargs)
 
     def add_default_headers(self, headers):
+        """
+        Add defaults for 'Content-Type' and 'Host' headers.
+        """
         headers['Content-Type'] = "application/x-www-form-urlencoded"
         headers['Host'] = self.host
         return headers