Skip to content

Commit

Permalink
debug: test all 404 paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tolbrino committed May 29, 2024
1 parent e5de281 commit e6a0caa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/client_log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export class ClientLog {

async fetch(request: WorkerRequest) {
const url = new URL(request.url);
console.log("URL in client_logs", url);
if (url.pathname == "/websocket") {
if (request.headers.get("Upgrade") != "websocket") {
return new Response("expected websocket", { status: 400 });
Expand Down
3 changes: 2 additions & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export async function handleRequest(
await logsObject.fetch(url, request.clone());
return fetchLogo(tokenLogoUrl, request);
}
return new Response("Not found", { status: 404 });
console.log("NOT FOUND 0", url.hostname, url.pathname, path);
return new Response("Not found", { status: 404 });
}

if (path[0] == "clientlogs") {
Expand Down

0 comments on commit e6a0caa

Please sign in to comment.