summaryrefslogtreecommitdiff
path: root/oauthlib/common.py
diff options
context:
space:
mode:
authordjpnewton <djpnewton@gmail.com>2014-10-09 15:08:01 +1300
committerdjpnewton <djpnewton@gmail.com>2014-10-09 15:08:01 +1300
commit8f57459fbbab1f317d5475f31f90b1a75016a2a8 (patch)
treebb01e4e3f6f806e31d43d2a5a1fc62d416e61482 /oauthlib/common.py
parent201f9f00ff176c6105142d63b33c85127983b011 (diff)
downloadoauthlib-8f57459fbbab1f317d5475f31f90b1a75016a2a8.tar.gz
fix add_params_to_uri() fragment bug
add_params_to_uri() ovewrites existing fragment when fragment parameter = true
Diffstat (limited to 'oauthlib/common.py')
-rw-r--r--oauthlib/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/common.py b/oauthlib/common.py
index b200a9a..d251a9b 100644
--- a/oauthlib/common.py
+++ b/oauthlib/common.py
@@ -281,7 +281,7 @@ def add_params_to_uri(uri, params, fragment=False):
"""Add a list of two-tuples to the uri query components."""
sch, net, path, par, query, fra = urlparse.urlparse(uri)
if fragment:
- fra = add_params_to_qs(query, params)
+ fra = add_params_to_qs(fra, params)
else:
query = add_params_to_qs(query, params)
return urlparse.urlunparse((sch, net, path, par, query, fra))