Skip to content

Commit

Permalink
logfix
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Martin <[email protected]>
  • Loading branch information
thonkinator committed Sep 4, 2023
1 parent a20e233 commit 0ddd4f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function cdn(c: Context<{ Bindings: Bindings }>, endpoint: string) {
const url = new URL(`https://cdn.discordapp.com${endpoint}`);
new URL(c.req.url).searchParams.forEach((value, param) => url.searchParams.append(param, value));
const res = await fetch(url);
console.log(`${c.req.url}: ${url}`);
console.log(`${c.req.url}: ${url.href}`);
return new Response(res.body, {
headers: {
"Content-Type": res.headers.get("Content-Type")!,
Expand Down

0 comments on commit 0ddd4f9

Please sign in to comment.