~matt-goodall/oauthlib/fix-dict-encode-bug

« back to all changes in this revision

Viewing changes to oauthlib/oauth1/rfc5849/signature.py

  • Committer: Ib Lundgren
  • Date: 2013-02-11 23:25:30 UTC
  • Revision ID: git-v1:857ad9c5ed778e00d42a5333863c10a6209bdd43
Use urldecode instead of parse_qsl

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
except ImportError:
31
31
    import urllib.parse as urlparse
32
32
from . import utils
33
 
from oauthlib.common import bytes_type, extract_params, safe_string_equals, unicode_type
 
33
from oauthlib.common import urldecode, extract_params, safe_string_equals
 
34
from oauthlib.common import bytes_type, unicode_type
34
35
 
35
36
 
36
37
def construct_base_string(http_method, base_string_uri,
245
246
    # .. _`RFC3986, Section 3.4`: http://tools.ietf.org/html/rfc3986#section-3.4
246
247
    # .. _`W3C.REC-html40-19980424`: http://tools.ietf.org/html/rfc5849#ref-W3C.REC-html40-19980424
247
248
    if uri_query:
248
 
        params.extend(urlparse.parse_qsl(uri_query, keep_blank_values=True))
 
249
        params.extend(urldecode(uri_query))
249
250
 
250
251
    # *  The OAuth HTTP "Authorization" header field (`Section 3.5.1`_) if
251
252
    #    present.  The header's content is parsed into a list of name/value