Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion workers/control-api/worker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async function probeCliAuth(env = {}) {
method: "GET",
headers: { Accept: "application/json" },
cache: "no-store",
redirect: "error",
redirect: "follow",
Comment thread
zskbot marked this conversation as resolved.
Resolved
signal: AbortSignal.timeout(4000)
});
if (!response.ok) {
Expand Down
2 changes: 1 addition & 1 deletion workers/control-api/worker.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test("service registry probes CLI Auth and MCP while keeping Account Auth.js sep
const originalFetch = globalThis.fetch;
globalThis.fetch = async (url, options = {}) => {
if (url === "https://auth.ocodejs.dev/health") {
assert.equal(options.redirect, "error");
assert.equal(options.redirect, "follow");
return new Response(JSON.stringify({
ok: true,
service: "ocodejs-auth-worker",
Expand Down
Loading