diff options
author | David Gouldin <david@gould.in> | 2012-05-12 15:20:14 -0700 |
---|---|---|
committer | David Gouldin <david@gould.in> | 2012-05-12 15:20:14 -0700 |
commit | bbee30c35e5eb438567e693f6df00644ad3bc4fb (patch) | |
tree | 644edf917cf21123adc4cde9a864ee0b8bf47583 /oauthlib/common.py | |
parent | a56cf9c1721e81abb02b8578493cb85bd3307e35 (diff) | |
download | oauthlib-use_request_objects.tar.gz |
Continuing to refactor oauth1 to use Request objects internally.use_request_objects
Diffstat (limited to 'oauthlib/common.py')
-rw-r--r-- | oauthlib/common.py | 7 |
1 files changed, 5 insertions, 2 deletions
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): |