ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject git commit: AMBARI-6292. Python client caches curl flags between requests causing problems(Greg Hill via Subin)
Date Mon, 11 Aug 2014 20:18:27 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 341619701 -> 6cf54ca53


AMBARI-6292. Python client caches curl flags between requests causing problems(Greg Hill via
Subin)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6cf54ca5
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6cf54ca5
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6cf54ca5

Branch: refs/heads/trunk
Commit: 6cf54ca53e536bbbe2a7363695a8f0f5a9b012c4
Parents: 3416197
Author: subin <subin@SuMcPro.local>
Authored: Tue Aug 12 01:48:14 2014 +0530
Committer: subin <subin@SuMcPro.local>
Committed: Tue Aug 12 01:48:14 2014 +0530

----------------------------------------------------------------------
 .../python-client/src/main/python/ambari_client/core/http_client.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6cf54ca5/ambari-client/python-client/src/main/python/ambari_client/core/http_client.py
----------------------------------------------------------------------
diff --git a/ambari-client/python-client/src/main/python/ambari_client/core/http_client.py
b/ambari-client/python-client/src/main/python/ambari_client/core/http_client.py
index 39b9961..7f7e526 100644
--- a/ambari-client/python-client/src/main/python/ambari_client/core/http_client.py
+++ b/ambari-client/python-client/src/main/python/ambari_client/core/http_client.py
@@ -99,6 +99,7 @@ class HttpClient(object):
                     (path,))
                 payload = None
 
+	self.c.unsetopt(pycurl.CUSTOMREQUEST)
         buf = cStringIO.StringIO()
         self.c.setopt(pycurl.WRITEFUNCTION, buf.write)
         self.c.setopt(pycurl.SSL_VERIFYPEER, 0)


Mime
View raw message