emikulic / darkhttpd

When you need a web server in a hurry.
https://unix4lyfe.org/darkhttpd/
ISC License
1.05k stars 87 forks source link

Check why the requested directory failed to open and send correct reply #45

Closed g-rden closed 8 months ago

g-rden commented 8 months ago

Previously requesting a directory that did not exist just gave a 500 status response. Now the error code set by opendir() is used to give the right response. This is how requesting files is done already, so I just copied the code from there.

emikulic commented 8 months ago

Nice!