Skip to content

Commit

Permalink
Parse URL querystrings propery
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed May 24, 2010
1 parent 724b65e commit 1331437
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/journey.js
Expand Up @@ -258,7 +258,7 @@ journey.Router.prototype = {
// It creates a new `route` context, in which the response will be generated.
dispatch: function (request, body, respond) {
var resolved, route, parser,
params = request.url.query || {},
params = querystring.parse(request.url.query),
accepts = request.headers.accept;

// Journey being a JSON-only server, we expect the 'Accept' header
Expand Down
2 changes: 1 addition & 1 deletion test/mock-request.js
Expand Up @@ -7,7 +7,7 @@ var router = null;

var mock = {
mockRequest: function (method, path, headers) {
var uri = url.parse(path || '/', true);
var uri = url.parse(path || '/');

return {
listeners: [],
Expand Down

0 comments on commit 1331437

Please sign in to comment.