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. Requesting "/gems?search=blah" is redirected by the static middleware to "/gems/" so the user gets a listing of all gems instead of the search results, etc.