mcavage/node-restify — Issue #59: Routing fails if query params contains a "/", encoded or not
Author: rschiavi
Created: 2012-01-28 00:32:10+00:00
State: open

If you create a route, and pass in something like foo="bar / foo" restify will fail to parse that and throw a 404. it appears to be parsing the route and including any "/" found in query params.

var restify = require('restify');

var server = restify.createServer();
server.get("/", function(req,res){
console.log("hello");
res.write("hello");
res.end();
});
server.listen(8090);

if you call it like this, you'll never see the request as restify will 404 it:

http://localhost:8090/?foo=Firefox%20901%20%2F%20Windows