Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug 1 #379

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
debug 2
  • Loading branch information
JerrySentry committed Oct 3, 2024
commit 9b1648ba95fb03507638caa049edfa7c03368dbf
6 changes: 5 additions & 1 deletion shared/torngit/github.py
Original file line number Diff line number Diff line change
@@ -764,7 +764,7 @@ async def make_http_call(
statuses_to_retry=[502, 503, 504],
**args,
) -> Response:
print("ALRIGHT 1")
print("ALRIGHT 2")
_headers = {
"Accept": "application/json",
"User-Agent": os.getenv("USER_AGENT", "Default"),
@@ -793,6 +793,10 @@ async def make_http_call(
elif url.startswith(self.service_url) and self.host_header is not None:
_headers["Host"] = self.host_header


_headers["X-GitHub-Api-Version"] = "2022-11-28"
_headers["Accept"] = "application/vnd.github+json"

kwargs = dict(
json=body if body else None, headers=_headers, follow_redirects=False
)
Loading
Oops, something went wrong.