Skip to content

Sending a 403 to dirs with no index file requests#19

Merged
douxxtech merged 1 commit intomainfrom
403dirs
Mar 21, 2026
Merged

Sending a 403 to dirs with no index file requests#19
douxxtech merged 1 commit intomainfrom
403dirs

Conversation

@douxxtech
Copy link
Owner

To follow most web servers logic, we now send a 403 when a directory with no index file is requested, instead of the previous 404.

@github-actions
Copy link

threads: 4 (auto), conns: 50, duration: 20s

[wrk]
Running 20s test @ http://127.0.0.1:8080/
  4 threads and 50 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     4.93ms    8.91ms 213.97ms   99.48%
    Req/Sec     1.70k   352.05     2.48k    67.25%
  135358 requests in 20.04s, 207.19MB read
  Socket errors: connect 0, read 426, write 0, timeout 0
Requests/sec:   6755.03
Transfer/sec:     10.34MB

@douxxtech douxxtech merged commit c76dd59 into main Mar 21, 2026
2 checks passed
@douxxtech douxxtech deleted the 403dirs branch March 21, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant