rack/rack-contrib — pull request #77 by sebglazebrook (2013-09-26 01:22:24+00:00)
Title: Only looks for static files if it's a GET request

Rack Try Static currently looks for static assets no matter what the request method.

This causes errors when a POST or PUT method comes through. It returns a 405 and does not continue trying to fulfil that request in the rest of the app.

GET is the only request type it can actually get a static asset for so why not just check for static assets for this request method only?

BTW there are not tests with this pull request. I read the readme on testing and without bundler it just took way too long and I didn't get anywhere.