We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b692e8 commit 2dd177bCopy full SHA for 2dd177b
1 file changed
gitlab/client.py
@@ -533,7 +533,7 @@ def _set_auth_info(self) -> None:
533
self.headers.pop("PRIVATE-TOKEN", None)
534
self.headers["JOB-TOKEN"] = self.job_token
535
536
- if self.http_username:
+ if self.http_username and self.http_password:
537
self._http_auth = requests.auth.HTTPBasicAuth(
538
self.http_username, self.http_password
539
)
0 commit comments