Commits

ben...@couch.test  committed 5b27a18

fix

  • Participants
  • Parent commits e1d6ac8

Comments (0)

Files changed (2)

File restclient/bin/rest_cli.py

         if uri.username:
             http.add_credentials(uri.username, uri.password)
         transport = HTTPLib2Transport(http=http)
+    
+    
     res = restclient.Resource(uri.uri, transport=transport)
 
     list_headers = list_headers or []

File restclient/transport.py

 
 def useCurl():
     global _default_http
+    if _default_http is None:
+        setDefaultHTTPTransport(createHTTPTransport())
+
     return isinstance(_default_http, CurlTransport)
 
 class HTTPError(Exception):