Skip to content
Browse files

fix incompatibility with requests module v0.14.1

Latest version of requests module doesn't support params as empty
string and requires None or dictionary.

Change-Id: Id0698f43be7fd9e445cb306fb687e2787c93ab59
Reviewed-on: http://review.couchbase.org/21631
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information...
1 parent ab31709 commit b25085e579a23fe47e00868e271bbd68b49019f1 @pavel-paulau pavel-paulau committed with ingenthr Oct 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 couchbase/rest_client.py
View
2 couchbase/rest_client.py
@@ -279,7 +279,7 @@ def _create_headers(self):
return {'Content-Type': 'application/x-www-form-urlencoded',
'Accept': '*/*'}
- def _http_request(self, api, method='GET', params='', headers=None,
+ def _http_request(self, api, method='GET', params=None, headers=None,
timeout=120, base=None):
if base is None:
base = self.base_url

0 comments on commit b25085e

Please sign in to comment.
Something went wrong with that request. Please try again.