mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 05:41:52 +09:00
fix: change GoogleLoginHintAddon request method to async
This commit is contained in:
parent
40867acb26
commit
3850b0de2f
1 changed files with 2 additions and 3 deletions
|
|
@ -1,4 +1,3 @@
|
|||
from json import load
|
||||
from mitmproxy import http
|
||||
import asyncio
|
||||
from pkce_check import PKCEDowngradeChecker
|
||||
|
|
@ -100,11 +99,11 @@ class GoogleLoginHintAddon():
|
|||
else:
|
||||
self.checker = None
|
||||
|
||||
def request(self, flow: http.HTTPFlow):
|
||||
async def request(self, flow: http.HTTPFlow):
|
||||
if self.checker is None:
|
||||
return
|
||||
try:
|
||||
asyncio.run(self.checker.request(flow))
|
||||
await self.checker.request(flow)
|
||||
except Exception as e:
|
||||
print(f"[ERROR] GoogleLoginHint Addon failed: {e}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue