Skip to content

Commit bdceae2

Browse files
committed
pass requester base URL to integration (#2420)
1 parent def5223 commit bdceae2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

github/Requester.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ def __init__(
312312

313313
self.__installation_authorization = None
314314
self.__app_auth = app_auth
315+
self.__base_url = base_url
315316

316317
self.__auth_lock = RLock()
317318

@@ -333,7 +334,6 @@ def __init__(
333334
else:
334335
self.__authorizationHeader = None
335336

336-
self.__base_url = base_url
337337
o = urllib.parse.urlparse(base_url)
338338
self.__hostname = o.hostname
339339
self.__port = o.port
@@ -375,7 +375,9 @@ def _must_refresh_token(self) -> bool:
375375
def _get_installation_authorization(self):
376376
assert self.__app_auth is not None
377377
integration = GithubIntegration.GithubIntegration(
378-
self.__app_auth.app_id, self.__app_auth.private_key
378+
self.__app_auth.app_id,
379+
self.__app_auth.private_key,
380+
base_url=self.__base_url,
379381
)
380382
return integration.get_access_token(
381383
self.__app_auth.installation_id,

0 commit comments

Comments
 (0)