GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(client): let mypy know http_password is set · python-gitlab/python-gitlab@2dd177b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • gitlab
    • client.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎gitlab/client.py‎

Copy file name to clipboardExpand all lines: gitlab/client.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def _set_auth_info(self) -> None:
533533
self.headers.pop("PRIVATE-TOKEN", None)
534534
self.headers["JOB-TOKEN"] = self.job_token
535535

536-
if self.http_username:
536+
if self.http_username and self.http_password:
537537
self._http_auth = requests.auth.HTTPBasicAuth(
538538
self.http_username, self.http_password
539539
)

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.