aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setuptools/command/upload_docs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py
index 566a7268..46e06bc6 100644
--- a/setuptools/command/upload_docs.py
+++ b/setuptools/command/upload_docs.py
@@ -78,10 +78,10 @@ class upload_docs(upload):
credentials = self.username + ':' + self.password
try: # base64 only works with bytes in Python 3.
encoded_creds = base64.encodebytes(credentials.encode('utf8'))
- auth = b"Basic"
+ auth = b"Basic "
except AttributeError:
encoded_creds = base64.encodestring(credentials)
- auth = "Basic"
+ auth = "Basic "
auth += encoded_creds.strip()
# Build up the MIME payload for the POST data