37signals/pow — pull request #314 by sj26 (2012-07-30 10:49:19+00:00)
Title: Don't redirect static directories

The connect static middleware is redirecting bare directory URLs to append a slash, discarding the query, and without giving the app a chance to respond. This prevents the redirection.

Say I have a collection of gems like public/gems/blah.gem, and I have a search interface at "/gems" in my app. Reqeusting "/gems?search=blah" is redirected by the static middleware to "/gems/" so the user gets a listing of all gems instead of search result, etc.