Skip to content

Commit

Permalink
improve header check (#2881)
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz authored Dec 21, 2024
1 parent f95c4cc commit 77444b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def new_send(self, data):
)

new_data = data
if b"api.github.com" in headers[b"host"]:
if headers[b"host"].endswith(b"api.github.com"):
if b"authorization" not in headers:
if github_token := os.environ.get("GITHUB_TOKEN", None):
new_data = (
Expand Down

0 comments on commit 77444b0

Please sign in to comment.