From 45928d50cd992a38a0df25813bd13617c13c1462 Mon Sep 17 00:00:00 2001 From: Jonathan Dye Date: Thu, 31 Oct 2013 03:35:56 -0600 Subject: fixes a bug where a Basic auth digest header can get encoded with newlines inside --- setuptools/package_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/package_index.py') 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""" -- cgit v1.2.3