You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Well, this had nothing to do with query parsing, and just that restify 1.0 had a bug where if the route was exactly /, it would 404. Which is why it's still in beta ;) Anyway, it's fixed.
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
The text was updated successfully, but these errors were encountered: