diff options
author | Jonathan Dye <jonathan@lulz.bz> | 2013-10-31 03:35:56 -0600 |
---|---|---|
committer | Jonathan Dye <jonathan@lulz.bz> | 2013-10-31 03:35:56 -0600 |
commit | 45928d50cd992a38a0df25813bd13617c13c1462 (patch) | |
tree | acfdebc523e69f54496363ef03b1a1988316a4b2 | |
parent | 3a8d13d309dfd091c24a61aceefac58198edc495 (diff) | |
download | external_python_setuptools-45928d50cd992a38a0df25813bd13617c13c1462.tar.gz external_python_setuptools-45928d50cd992a38a0df25813bd13617c13c1462.tar.bz2 external_python_setuptools-45928d50cd992a38a0df25813bd13617c13c1462.zip |
fixes a bug where a Basic auth digest header can get encoded with newlines inside
-rwxr-xr-x | setuptools/package_index.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 4c9e40a7..94873620 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -918,7 +918,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','') def open_with_auth(url, opener=urllib2.urlopen): """Open a urllib2 request, handling HTTP authentication""" |