diff --git a/Github/http.py b/Github/http.py index 740f7a1..bc12114 100644 --- a/Github/http.py +++ b/Github/http.py @@ -163,7 +163,7 @@ class http: def data(self): #return session headers and auth headers = {**self.session.headers} - if self.auth: + if self.auth is not None: auth = {'username': self.auth.login, 'token': self.auth.password} auth = None return {'headers': headers, 'auth': auth}