aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-11-14 15:13:37 -0500
committerJason R. Coombs <jaraco@jaraco.com>2013-11-14 15:13:37 -0500
commit54e7f4c241e43313019e72516cece1bca9c1c9ee (patch)
tree032218d98185c82d4de40e312fda94d65d0a9412 /setuptools/package_index.py
parent7ade322c4e685aef1adab02ca3bad6444acc2466 (diff)
parent45928d50cd992a38a0df25813bd13617c13c1462 (diff)
downloadexternal_python_setuptools-54e7f4c241e43313019e72516cece1bca9c1c9ee.tar.gz
external_python_setuptools-54e7f4c241e43313019e72516cece1bca9c1c9ee.tar.bz2
external_python_setuptools-54e7f4c241e43313019e72516cece1bca9c1c9ee.zip
Merged in jdye/setuptools (pull request #21)
fixes a bug where a Basic auth digest header can get encoded with newlines inside
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 2e8f62e2..4a3f49c7 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -924,7 +924,7 @@ def _encode_auth(auth):
# convert back to a string
encoded = encoded_bytes.decode()
# strip the trailing carriage return
- return encoded.rstrip()
+ return encoded.replace('\n','')
class Credential(object):
"""