-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi, I started the server and tried to make a simple GET call through the browser. It errors with:
straightforward onUncaughtException: TypeError [ERR_INVALID_URL]: Invalid URL
Relevant place:
straightforward/src/Straightforward.ts
Line 295 in 84a4cb8
| const urlParts = new URL(req.url) |
It's not possible to parse the URL like this. We need to do:
new URL(request.url, `http://${request.headers.host}`);Metadata
Metadata
Assignees
Labels
No labels