mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: Fix OAuth server premature shutdown on callback
This commit is contained in:
parent
5d77eb1314
commit
e98ffb5ae0
1 changed files with 3 additions and 3 deletions
|
@ -202,10 +202,10 @@ def start_openrouter_oauth_flow(io, analytics):
|
|||
self.send_response(302) # Found (temporary redirect)
|
||||
self.send_header("Location", urls.website)
|
||||
self.end_headers()
|
||||
# No need to set server_error, just redirect and shut down
|
||||
shutdown_server.set()
|
||||
# No need to set server_error, just redirect.
|
||||
# Do NOT shut down the server here; wait for timeout or success.
|
||||
else:
|
||||
# Redirect anything else to the main website as well
|
||||
# Redirect anything else (e.g., favicon.ico) to the main website as well
|
||||
self.send_response(302)
|
||||
self.send_header("Location", urls.website)
|
||||
self.end_headers()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue