code: function parse(url) {
    ['?', '#'].forEach(function(separator) {
      var index = url.indexOf(separator);
      if (index !== -1) url = url.substring(0, index);
    });
    return url;
  }
docs: /*
  Custom req.url parser that strips out any trailing query