Commit 54e7f4c2 authored by Jason R. Coombs's avatar Jason R. Coombs

Merged in jdye/setuptools (pull request #21)

fixes a bug where a Basic auth digest header can get encoded with newlines inside
parents 7ade322c 45928d50
...@@ -924,7 +924,7 @@ def _encode_auth(auth): ...@@ -924,7 +924,7 @@ def _encode_auth(auth):
# convert back to a string # convert back to a string
encoded = encoded_bytes.decode() encoded = encoded_bytes.decode()
# strip the trailing carriage return # strip the trailing carriage return
return encoded.rstrip() return encoded.replace('\n','')
class Credential(object): class Credential(object):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment