perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.63k stars 1.56k forks source link

Solve the problem of Method not allowed (405) #1234

Open Bugjudger opened 3 years ago

Bugjudger commented 3 years ago

Try to fix #1226

When a website only can be visited by the GET method and you use the PUT method, you will get 405 error but not 404.

You can test it: curl -X PUT "localhost:4567"