mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 07:51:26 +00:00
fix: expand SSRF guard coverage
This commit is contained in:
@@ -54,8 +54,7 @@ function resolveRequestUrl(input: RequestInfo | URL): string {
|
||||
if ("url" in input && typeof input.url === "string") {
|
||||
return input.url;
|
||||
}
|
||||
|
||||
throw new Error(`Unable to resolve request URL from input: ${JSON.stringify(input, null, 2)}`);
|
||||
throw new Error("Unsupported fetch input: expected string, URL, or Request");
|
||||
}
|
||||
|
||||
function createSlackMediaFetch(token: string): FetchLike {
|
||||
|
||||
Reference in New Issue
Block a user