senchalabs/connect — Issue #460: '%' in url will let `static` module throw `URIError: URI malformed`
Author: fengmk2
Created: 2012-01-16 03:03:51+00:00
State: open

When GET `http://localhost:3000/foo%`, the `static` module go out `URIError: URI malformed`.

I deep into the source code found out : `decodeURIComponent('/foo%')` should be a problem.

```
// parse url
var url = parse(options.path)
, path = decodeURIComponent(url.pathname)
, type;
```

I think GET `http://localhost:3000/foo%` should return 404 more friendly instead of return 500 Error Page.