Closed robrwo closed 3 years ago
Static file requests (handled by Plack::App::File, which is used by Plack::Middleware::Static) were allowing any request method, including POST or DELETE.
This change only allows GET and HEAD requests. Other requests will receive a HTTP 405 error.
Fixes #660.
Static file requests (handled by Plack::App::File, which is used by Plack::Middleware::Static) were allowing any request method, including POST or DELETE.
This change only allows GET and HEAD requests. Other requests will receive a HTTP 405 error.
Fixes #660.