From 5a52fea64ecdb867a3390a97c023765265d88d23 Mon Sep 17 00:00:00 2001 From: Nick Clarey Date: Fri, 17 May 2019 11:53:29 +0100 Subject: [PATCH] Fix issue with Base64 encoding for basic auth --- pylinkvalidator/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylinkvalidator/crawler.py b/pylinkvalidator/crawler.py index c671bc2..ee57e6b 100644 --- a/pylinkvalidator/crawler.py +++ b/pylinkvalidator/crawler.py @@ -252,7 +252,7 @@ def __init__(self, worker_init): if self.worker_config.username and self.worker_config.password: base64string = unicode( - base64.encodestring( + base64.b64encode( '{0}:{1}'.format( self.worker_config.username, self.worker_config.password)