mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-05 06:42:12 +03:00
fix: route zai-web (and other registry-entry web-cookie providers) connection-test cookie probe through the configured proxy (#7058) (#7192)
This commit is contained in:
committed by
GitHub
parent
005199ceb3
commit
3729967cf6
@@ -155,7 +155,7 @@ export async function validateWebCookieProvider({
|
||||
const baseUrl = normalizeBaseUrl(entry.baseUrl || "");
|
||||
const testUrl = `${baseUrl}/models`;
|
||||
|
||||
const res = await directHttpsRequest(
|
||||
const res = await validationRead(
|
||||
testUrl,
|
||||
{
|
||||
method: "GET",
|
||||
@@ -164,7 +164,7 @@ export async function validateWebCookieProvider({
|
||||
Cookie: cookie,
|
||||
},
|
||||
},
|
||||
10_000
|
||||
isLocalProvider(provider)
|
||||
);
|
||||
|
||||
if (res.status === 401 || res.status === 403) {
|
||||
|
||||
Reference in New Issue
Block a user