Skip to content

Commit

Permalink
Merge pull request #20 from thatch/get-project-page-accept
Browse files Browse the repository at this point in the history
Use instance-default accept in get_project_page
  • Loading branch information
jwodder committed Jan 30, 2024
2 parents 20d501e + 0d115d5 commit d854d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pypi_simple/client.py
Expand Up @@ -238,7 +238,7 @@ def get_project_page(
greater major component than the supported repository version
"""
url = self.get_project_url(project)
r = self.s.get(url, timeout=timeout, headers={"Accept": accept or None})
r = self.s.get(url, timeout=timeout, headers={"Accept": accept or self.accept})
if r.status_code == 404:
raise NoSuchProjectError(project, url)
r.raise_for_status()
Expand Down

0 comments on commit d854d16

Please sign in to comment.