dom96 / jester

A sinatra-like web framework for Nim.
MIT License
1.56k stars 120 forks source link

static files respond to non-GET http methods #287

Closed niv closed 2 years ago

niv commented 2 years ago
settings:
  staticDir: "./"
routes:
  get "/dummy":
    resp "1"
$ ls ./
test.html

$ http POST :8080/test.html

Expected: probably 404 Not Found

Got: 200 OK + file

niv commented 2 years ago

Nevermind. I checked apache, and it seems to be doing the same thing, so clearly this is not as wrong as my intuition told me - my bad.