Reproduction
- Build and start the CommandBoard PWA server.
- Request a malformed percent-encoded static path:
curl --path-as-is http://127.0.0.1:4173/%
Actual behavior
decodeURIComponent() throws a URIError, which escapes the request handler and terminates the Node process.
Expected behavior
Return a client error for the malformed path and keep the server available.
I have a small fix ready that returns 400 Invalid path encoding and preserves subsequent health requests.
Reproduction
Actual behavior
decodeURIComponent()throws aURIError, which escapes the request handler and terminates the Node process.Expected behavior
Return a client error for the malformed path and keep the server available.
I have a small fix ready that returns
400 Invalid path encodingand preserves subsequent health requests.