From bbee30c35e5eb438567e693f6df00644ad3bc4fb Mon Sep 17 00:00:00 2001 From: David Gouldin Date: Sat, 12 May 2012 15:20:14 -0700 Subject: Continuing to refactor oauth1 to use Request objects internally. --- oauthlib/common.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'oauthlib/common.py') diff --git a/oauthlib/common.py b/oauthlib/common.py index 5ec354e..3d10bd8 100644 --- a/oauthlib/common.py +++ b/oauthlib/common.py @@ -152,8 +152,11 @@ class Request(object): @property def uri_query_params(self): - return urlparse.parse_qsl(self.uri_query, keep_blank_values=True, - strict_parsing=True) + if self.uri_query: + return urlparse.parse_qsl(self.uri_query, keep_blank_values=True, + strict_parsing=True) + else: + return [] @property def urlencoded_body(self): -- cgit v1.2.1