servor
servor copied to clipboard
Check if a pathname containing dots is a directory before serving it as static file
In paths such as /my.domain.com, servor should serve index.html from that directory instead of serving a file which name is my and extension is domain.com.
The code in this PR checks if pathname exists and if it is a directory before serving it, serves a static file otherwise.