fix(TLS 驗證): 移除 git 與 OpenRouter 的不安全憑證略過設定

This commit is contained in:
2026-06-29 10:49:22 +00:00
parent f26e9deba7
commit 68ce92b0e5
4 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ describe('fetchAccountQuota', () => {
const get = async (url, opts) => {
assert.match(url, /openrouter\.ai\/api\/v1\/auth\/key$/);
assert.equal(opts.headers.Authorization, 'Bearer sk-or-xxx');
assert.equal(opts.httpsAgent.options.rejectUnauthorized, false);
assert.equal(opts.httpsAgent, undefined);
return { data: { data: { usage: 12.4, limit: 100, limit_remaining: 87.6 } } };
};
const q = await fetchAccountQuota('openai', { apiKeys: ['sk-or-xxx'], baseURL: 'https://openrouter.ai/api/v1' }, { get });