From d55944aed4899011a15684efcdf603894dedd495 Mon Sep 17 00:00:00 2001 From: Ashley Sommer Date: Wed, 14 Aug 2019 13:20:33 +1000 Subject: Fix tests for OAuth1 signature basestring generation, to better align with examples and expected results set out in the RFC doc. Fixes https://github.com/oauthlib/oauthlib/issues/695 --- oauthlib/oauth1/rfc5849/signature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oauthlib/oauth1/rfc5849/signature.py') diff --git a/oauthlib/oauth1/rfc5849/signature.py b/oauthlib/oauth1/rfc5849/signature.py index a60bee2..243a586 100644 --- a/oauthlib/oauth1/rfc5849/signature.py +++ b/oauthlib/oauth1/rfc5849/signature.py @@ -90,7 +90,7 @@ def signature_base_string(http_method, base_str_uri, # (`Section 3.6`_). # # .. _`Section 3.4.1.2`: https://tools.ietf.org/html/rfc5849#section-3.4.1.2 - # .. _`Section 3.4.6`: https://tools.ietf.org/html/rfc5849#section-3.4.6 + # .. _`Section 3.6`: https://tools.ietf.org/html/rfc5849#section-3.6 base_string += utils.escape(base_str_uri) # 4. An "&" character (ASCII code 38). @@ -100,7 +100,7 @@ def signature_base_string(http_method, base_str_uri, # being encoded (`Section 3.6`). # # .. _`Section 3.4.1.3.2`: https://tools.ietf.org/html/rfc5849#section-3.4.1.3.2 - # .. _`Section 3.4.6`: https://tools.ietf.org/html/rfc5849#section-3.4.6 + # .. _`Section 3.6`: https://tools.ietf.org/html/rfc5849#section-3.6 base_string += utils.escape(normalized_encoded_request_parameters) return base_string -- cgit v1.2.1