We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3909ebd commit 8370e37Copy full SHA for 8370e37
adabot/github_requests.py
@@ -58,11 +58,8 @@ def _fix_kwargs(kwargs):
58
access_token = os.environ["ADABOT_GITHUB_ACCESS_TOKEN"]
59
basic_encoded = b64encode(str(user + ":" + access_token).encode()).decode()
60
auth_header = "Basic {}".format(basic_encoded)
61
-
62
- if "params" in kwargs:
63
- kwargs["headers"]["Authorization"] = auth_header
64
- else:
65
- kwargs["headers"] = {"Authorization": auth_header}
+
+ kwargs["headers"]["Authorization"] = auth_header
66
67
return kwargs
68
0 commit comments