mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 14:35:00 +00:00
fix(stability): patch regex retries and timeout abort handling
This commit is contained in:
committed by
Peter Steinberger
parent
99a2f5379e
commit
1051f42f96
@@ -57,8 +57,8 @@ function resolveClaudeWebSessionKey(): string | undefined {
|
||||
if (!cookieHeader) {
|
||||
return undefined;
|
||||
}
|
||||
const stripped = cookieHeader.replace(/^cookie:\\s*/i, "");
|
||||
const match = stripped.match(/(?:^|;\\s*)sessionKey=([^;\\s]+)/i);
|
||||
const stripped = cookieHeader.replace(/^cookie:\s*/i, "");
|
||||
const match = stripped.match(/(?:^|;\s*)sessionKey=([^;\s]+)/i);
|
||||
const value = match?.[1]?.trim();
|
||||
return value?.startsWith("sk-ant-") ? value : undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user