elysiajs/elysia

NOT_FOUND with spaces in path

Opened this issue · 0 comments

What version of Elysia is running?

1.1.26

What platform is your computer?

WSL Ubuntu

What steps can reproduce the bug?

// test.test.ts
import { test, expect } from "bun:test";
import { Elysia } from "elysia";

test("Spaces in path", async () => {
  const PATH = "/y a y";

  const app = new Elysia().get(PATH, "yay");

  const response = await app.handle(new Request(`http://localhost${PATH}`));

  expect(response.status).toBe(200);
});

What is the expected behavior?

test pass

What do you see instead?

test fails:

Expected: 200
Received: 404

Additional information

relates to elysiajs/elysia-static#35

Have you try removing the node_modules and bun.lockb and try again yet?

yes