mirror of
https://github.com/openai/codex.git
synced 2026-05-16 01:02:48 +00:00
@@ -133,7 +133,7 @@ impl OAuthHttpClient {
|
||||
name: OAUTH_DISCOVERY_HEADER.to_string(),
|
||||
value: OAUTH_DISCOVERY_VERSION.to_string(),
|
||||
}],
|
||||
None,
|
||||
/*body*/ None,
|
||||
Some(DISCOVERY_TIMEOUT),
|
||||
)
|
||||
.await
|
||||
|
||||
@@ -876,7 +876,11 @@ mod tests {
|
||||
|
||||
let persistor = OAuthPersistor::new(
|
||||
tokens.server_name.clone(),
|
||||
OAuthHttpClient::new(Arc::new(FailingHttpClient), None, None)?,
|
||||
OAuthHttpClient::new(
|
||||
Arc::new(FailingHttpClient),
|
||||
/*http_headers*/ None,
|
||||
/*env_http_headers*/ None,
|
||||
)?,
|
||||
OAuthCredentialsStoreMode::File,
|
||||
Some(tokens.clone()),
|
||||
);
|
||||
@@ -904,7 +908,11 @@ mod tests {
|
||||
|
||||
let persistor = OAuthPersistor::new(
|
||||
tokens.server_name.clone(),
|
||||
OAuthHttpClient::new(Arc::new(FailingHttpClient), None, None)?,
|
||||
OAuthHttpClient::new(
|
||||
Arc::new(FailingHttpClient),
|
||||
/*http_headers*/ None,
|
||||
/*env_http_headers*/ None,
|
||||
)?,
|
||||
OAuthCredentialsStoreMode::File,
|
||||
Some(tokens),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user