unvt / charites

It is an application to style vector tiles easily
https://unvt.github.io/charites/
MIT License
54 stars 13 forks source link

Return 404 not found when paths don't match #109

Closed keichan34 closed 2 years ago

keichan34 commented 2 years ago

Description

When a path is not matched in the serve command, a response is never returned to the client. This makes the server hang if there are a lot of requests to non-existent paths (for example, Chrome will sometimes automatically make a request to /favicon.ico).

This fix returns a 404 Not Found response to any request that isn't matched.

Type of Pull Request

Verify the followings